build-process

Visual Studio 2015 can't open project.exe for writing. Access to path denied

放肆的年华 提交于 2019-12-05 07:08:04
I am developing a VB.NET (4.5 framework) solution in Visual Studio 2015, Win10 OS, and have been able to run the builds uninhibited for several months, but now I am receiving the following error upon starting the build: vbc : error BC2012: can't open 'C:\MyProject\ProjR5\ProjR5\obj\Debug\ProjR5.exe' for writing: Access to the path 'C:\MyProj\ProjR5\ProjR5\obj\Debug\GenTagR5.exe' is denied. At first, VS2015 would give me the option to run the last successful build, but even that is no longer an option. After exhaustive internet searches on this problem, none of the dozen or so given solutions

How to avoid copying 40M of java lib's within a WAR when the WAR's size is 41M?

一笑奈何 提交于 2019-12-05 06:26:56
At the moment my build process consists of repackaging the war file with all required java libraries under WEB-INF/lib and then copying the war file to development/demo/production server to be redeployed by tomcat. The packaged war file's size is about 41M and it has at the moment something like 40M of external java libraries. There has to be a better way. How have you solved this issue? My development machine is a windows box with Eclipse as my IDE and Ant as my build tool. The servers are all linux boxes with Tomcat 5.5. Should I maybe add the jar files to the war package at server side? I

make: hierarchical make file

99封情书 提交于 2019-12-05 06:08:35
问题 (disclaimer: I am used to scons ... I am somewhat unexperienced with make) Context: I am using Eclipse CDT which generates makefiles. Let's say I have a project directory 'lib' and 2 build configurations 'Debug' and 'Release'. Eclipse CDT gracefully generates a makefile for each build configuration. The said makefiles end-up residing in 'Debug' and 'Release' folders. Now, what I want to do is have a makefile in the folder 'lib' which calls the makefiles 'Debug/makefile' and 'Release/makefile'

Gradle: War Task has Conflicting Includes/Excludes

﹥>﹥吖頭↗ 提交于 2019-12-05 05:21:09
I am trying to build a war file with Gradle, but I'm having an issue excluding one directory and including another that happen to have the same names, but different parent directories. Please notice in the first code example below that neither of the css/ directories are being included in the final war file -- I assume because Gradle thinks that I want to exclude any directory named css/ regardless of its absolute path. Basically I want to exclude src/main/webapp/css and include build/tmp/css because the latter contains the minified code. How can I achieve this? I've tried specifying an

ANT How to delete ONLY empty directories recursively

最后都变了- 提交于 2019-12-05 02:49:00
Does anyone know how to recursively delete "empty" directories with ANT (empty includes directories that only contain ".svn" etc). I know ant allows you to "includeEmptyDirs=true" but I want it to ONLY delete a directory if it is empty (and actually I'd probably need to walk up the recursive chain and delete the directory it was contained in if it is now empty). Basically as part of our build process we copy over a set of directories that contain a bunch of other nested directories containing various XML and data, and when we move the location for that data our "copy" and checkin build process

Out of tree builds with makefiles and static pattern rules

那年仲夏 提交于 2019-12-05 02:19:21
I'm working on some bare-metal embedded code that runs on ARM, and thus has to deal with the whole ARM vs. THUMB mode distinction. The current build system uses static pattern rules to determine whether to compile files in ARM or THUMB mode. $(ACOBJS) : %.o : %.c @echo $(CC) -c $(CFLAGS) $(AOPT) -I . $(IINCDIR) $< -o $@ $(TCOBJS) : %.o : %.c @echo $(CC) -c $(CFLAGS) $(TOPT) -I . $(IINCDIR) $< -o $@ Where ACOBJS is a list of output objects that should be in ARM mode and the same for TCOBJS and Thumb mode. These lists are created from the list of sources in the usual manner of ACOBJS = $(ACSRC:

Does it matter which vendor's JDK you build with?

吃可爱长大的小学妹 提交于 2019-12-05 00:34:19
If I'm deploying to servers with WebSphere 6.1 (Java 1.5), should I use IBM's JDK on my build box? Or will Sun's JDK compile to the same binary? If I should use IBM's, where can I get the Windows x64 version? I would as much as possible try to keep development as close to production as possible. Ibm and Sun's JDK's certainly both satisfy the SDK certification, but they are by no means identical. Their instrumentation and memory management are at least slightly different. If nothing else, the bugs in the JDK will be different, which your code may only trip over in one scenario vs. another. It

Automating builds from subversion tags

风流意气都作罢 提交于 2019-12-05 00:07:22
I'm trying to automate the build process for engineering group. As part of that automation, I'm trying to get to a point where the act of applying a specific tag that adheres to a pattern will kick off an automated process that will do the following: Check out source code Create a build script from a template Build the project I'm pretty certain I could do this with a post-hook in subversion, but I'm trying to figure out a way to do this with something other than a subversion hook. Would it make sense to monitor the tags directory in the subversion repository to kick off my workflow? Are there

Best practice for code modification during ant build

♀尐吖头ヾ 提交于 2019-12-04 23:22:58
问题 Admitted, this doesn't sound like a best practice altogether, but let me explain. During the build, we need to paste the build number and the system version into a class whose sole purpose is to contain these values and make them accessible. Our first idea was to use system properties, but due to the volatility of the deployment environment (an other way of saying "the sysadmins are doing weird unholy creepy things") we would like to have them hard-coded. Essentially I see 4 possibilities to

In a Visual Studio pre-build event how do I execute an exe in the context of its own folder instead of the bin folder?

南笙酒味 提交于 2019-12-04 23:13:28
I have a pre-build event defined like this: $(ProjectDir)PreBuild\runthis.exe When the runthis.exe executes, it runs in the context of the bin folder of my project instead of the PreBuild folder where it lives. How can I make the build event execute runthis.exe in the context of the PreBuild folder instead of the bin folder? Add cd $(ProjectDir)PreBuild first to switch to that folder. 来源: https://stackoverflow.com/questions/13767157/in-a-visual-studio-pre-build-event-how-do-i-execute-an-exe-in-the-context-of-its