build-process

Change default ant target by command line argument

最后都变了- 提交于 2019-12-11 02:08:30
问题 I'm recently assigned a task to make ant be able to build war packages for different environments. I'm almost done except one feature. The ant accepts an env parameter by like -Denv=DEV , and use different configuration files to make the war package. But the default target is start which will build, deploy and start the tomcat. I don't want ant to deploy the war neither start the server when I pass in the -Denv=PROD arg. I only want ant to build the ROOT.war. It's enough. I know I can just

Prevent Eclipse from building .xml files

我怕爱的太早我们不能终老 提交于 2019-12-11 01:23:26
问题 I recently had a complete new install of my (archlinux) System. For that reason I installed the latest Eclipse (JUNO 4.2.1 and I regret it) along with the latest ADT Plugin(SDK rev 21). Now I'm observing a bug which I have had before but was fixed since then: When I'm in the Java Perspective, editing an xml file and click on the green "play" Button to push the new code on my phone, Eclipse starts building that particular XML file instead of building the project this xml file belongs to. I get

Can 'make' check if mtime of a dependency is *different* between runs, not just if it's newer than target?

妖精的绣舞 提交于 2019-12-11 00:38:14
问题 If foo_user.cpp depends on foo.h, then foo_user.cpp is built, and then foo.h's modification time is set to further in the past, make will not rebuild foo_user.cpp (because foo.cpp is 'newer'). I'd prefer it if make recorded the modification times of dependencies, and if they changed at all (newer or older), to consider targets of that dependency to be out of date. Can GNU make do this? If not, is there an easy alternative? In case you're curious how this situation arises: foo.h resides in a

How to create dynamic build tasks with Invoke-Build in PowerShell

三世轮回 提交于 2019-12-11 00:08:45
问题 Using Invoke-Build I am trying to create dynamic build tasks, an example of the approach is below. Where, in a similar fashion to the classic UNIX make facility an output file will be generated for each input file iff the input file is newer than the output file. It accomplishes this by dynamically generating a set of incremental tasks and then calling the tasks. The generation of the incremental tasks is outlined below: $Jobs = Foreach($_ in $Conf ) { $SourceFile = Get-Item $_ $FileName =

How can i add custom build steps in Qt-Creator?

半腔热情 提交于 2019-12-10 23:58:09
问题 After build my app, i want copy it to specific directory (on Windows 7). Custom build step cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins But I have error: Can't run process "cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins" That's wrong? 回答1: One way to do it would be to change the build output directory in the .pro file. Something like CONFIG(debug, debug|release) { DESTDIR = C:/myApp/debug } else { DESTDIR = C:/myApp/release } Or in your particular case CONFIG

Using customBuildCallbacks.xml in an Eclipse RCP headless build

我与影子孤独终老i 提交于 2019-12-10 22:42:39
问题 I am trying to add some custom build steps to my headless build process for an Eclipse RCP application. I understand that the recommended way is to provide a customBuildCallbacks.xml file on the plug-in directory, and adding a link to it in the build.properties file. # This property sets the location of the customb Build callback customBuildCallbacks = customBuildCallbacks.xml However, during the build process, this step is ignored. Is there some set-up step I might be missing? 回答1: Actually,

Visual Studio 2005 creates output directories in lowercase

早过忘川 提交于 2019-12-10 21:53:20
问题 I am using a standard operating environment which involves Visual Studio 2005 running on Windows XP. The source for the solution is managed in Linux, but edited and compiled using Visual Studio on a Windows computer via a network share. The problem I am facing is that if I change the output directory of certain projects of my solution, Visual Studio automatically creates the directories but they are always in lowercase. The output files have the correct case, only the directories are in

gulp-filter filters out all files

与世无争的帅哥 提交于 2019-12-10 20:48:30
问题 I'm working on moving my workflow over to Gulp, and I'm loving it so far; however, I seem to have misunderstood something about how the gulp-filter plugin works... I have the following task: gulp.task('assets', function() { var stylesFilter = gulpFilter(stylesPath); var imagesFilter = gulpFilter(imagesPath); var scriptsFilter = gulpFilter(scriptsPath); return gulp.src([].concat('app/**/*.html', stylesPath, imagesPath, scriptsPath)) // STYLES .pipe(stylesFilter) .pipe(gulp.dest('dist/test

error MSB4006: There is a circular dependency in the target dependency graph involving target

柔情痞子 提交于 2019-12-10 19:32:53
问题 I have following target on csproj file using VS2012, i want to run "Publish" on the project once the build has finished. This gives me following error "error MSB4006: There is a circular dependency in the target dependency graph involving target "AfterBuild"" <Target Name="AfterBuild"> <Message Text="Running Publish..." Importance="high"/> <MSBuild Projects="$(ProjectPath)" Properties="DeployOnBuild=true;PublishProfile=WebDeploy;CreatePackageOnPublish=True;VisualStudioVersion=11.0"/> </Target

How to get started with OpenCV 2.4.2 in ubuntu 10.4?

感情迁移 提交于 2019-12-10 15:54:15
问题 I am trying to install latest OpenCV version 2.4.2 on a linux (ubuntu 10.4) PC. I downloaded the tar ball. Un-tar-ed it. And followed install opencv in ubuntu 10.04. While 'Make' I got error after " Linking CXX executable ../../bin/opencv_perf_core " comes in red color here; after millions of warning or error msgs it shows as follows: ... ... ... ../../lib/libopencv_ts.so.2.4.2: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic