build-process

ANT: Copy contents of multiple filesets with same files in order of priority

廉价感情. 提交于 2019-12-23 18:03:26
问题 I'm trying to build a web application which takes it's class files from multiple locations. These locations can contain the same class files. I need to be able to specify a priority so that some locations take priority over others when copying the classes across. We have separate ant scripts which build the WAR file. This build is to hotswap in any changed classes whilst I am developing. So this build must be quick. For example, my two class locations are: /bin /build/classes I want classes

Gulp tasks from within other Gulp tasks?

走远了吗. 提交于 2019-12-23 17:03:11
问题 I have a Gulp build task that is made up of other build tasks similar to this: gulp.task('build', ['build-html', 'build-css', 'build-js', 'build-images']); The thing I hate about this is that the build task doesn't run until after the dependencies are finished: Starting 'build-html'... Finished 'build-html' after 1 s Starting 'build-css'... Finished 'build-css' after 1 s Starting 'build-js'... Finished 'build-js' after 1 s Starting 'build-images'... Finished 'build-images' after 1 s Starting

How to setup Qt Creator to work with CMake on Mac with Qt 4.7 SDK?

旧街凉风 提交于 2019-12-23 15:13:36
问题 I'm using Qt Creator 2.2.1 under MacOS X 10.6.8, standard MacOS X install for CMake 2.8.5 and Qt SDK version 1.1.2 released on June 21st (Qt 4.7.3 libraries). My CMakeLists.txt fails in the find_package for Qt4 -- the second of the lines below: set (CMAKE_MODULE_PATH /Applications/CMake 2.8-5.app/Contents/share/cmake-2.8/Modules) find_package (Qt4 REQUIRED HINTS /Users/myname/QtSDK) I added the first just to make sure it knew where FindQt4.cmake lives, but same error either with or without

Set system search path in Xcode 4

大城市里の小女人 提交于 2019-12-23 12:44:55
问题 I’m trying to set the header search path in Xcode 4 (using LLVM 2.0 / clang as compiler) in a C++ command line project so that I can include a library header file via #include <foo> . If I include the search path under the build setting “Header Search Paths” then the header is found. Unfortunately, I also compile with -Werror and a strict warning level and the header in question thus causes a compile error. I would therefore include the header search path via -isystem in order to disable

Accidentally released code to live. How to prevent happening again?

限于喜欢 提交于 2019-12-23 09:29:14
问题 We had an incident recently where some code got released to live that was not scheduled to be released. It had obviously been checked into the trunk. Which is fine i guess as you want to 'check in early, check in often' . However in this instance it was not supposed to be released in the next release. What kind of checks / strategy / process can be put in place to avoid code being released to live prematurely. It seems to me even with Continuous Integration and Unit Tests this is a human

How should I use debug/release mode in Visual Studio?

回眸只為那壹抹淺笑 提交于 2019-12-23 09:06:26
问题 I usually test my code locally on my work machine and then move it to development environment and then finally to production environment. What is the best way to use debug/release mode for this scenario? Do I only need to care about debug mode in my machine? Should I publish debug mode or release mode to development? I know probably I should publish using the release mode to production. I didn't really pay attention to all of this before so I have been working only in debug mode all the time,

Can CMake generate build scripts which do *not* use cmake?

☆樱花仙子☆ 提交于 2019-12-23 06:52:22
问题 Question: Can CMake generate build scripts that do not, in any way, use CMake? If not, how hard is it to gut a CMake generated automake script to not make any checks against CMake? I am a big fan of CMake to the point where I am championing the idea that we transition to it in my current work environment. One thing that could ease this transition from our current build system to CMake would be if I could demonstrate that CMake can generate automake files that do not require cmake themselves.

run a java application and a web application in a single maven build within a reactor project

不问归期 提交于 2019-12-23 02:34:17
问题 I have a reactor project with the following structure server - pom.xml (parent) -- appserver (has a server socket) -- webserver (connects to the socket in appserver and gets data) The appserver pom.xml has a maven-exec-plugin that runs the main method in my java class AppServer . When I run goal verify in my topmost (server) project my build gets stuck at appserver - exec goal and never proceeds to building / running my webserver. Ideally I would like to run my appserver first and then my

Is there a way to make the Maven build independent of the network connection?

瘦欲@ 提交于 2019-12-22 09:41:13
问题 I'm working in a Continuous Integration environment and part of the automated build process includes the compilation of Maven managed projects. What I want to know is if there is a way to make the Maven build independent of the network connection. Currently we have the all the jar's that we need installed in the repository but the problem is that Maven tries to check for plugins updates and that makes the build fail if, eventually, the connection is down. 回答1: You can either run offline with

Preprocessor Macros ignored in XCode's project settings, but not target settings

别来无恙 提交于 2019-12-22 07:55:28
问题 When I add a Preprocessor Macro in XCode 4 to one of my targets, it is used and conditional compilation occurs as I expect it to. However, if I move that setting to the project level and out of one of my targets the preprocessor macro apparently is ignored and not used at all. I verified that the macro is defined at all if I put it in the project's build setting through logging that is only compiled in when that macro is enabled. How can that be? System: OS X Lion, XCode 4.1 build 4B110,