build-automation

Building multiple executables with similar rules

烈酒焚心 提交于 2019-11-26 13:50:35
I am writing something like an interactive tutorial for C++. The tutorial will consist of two parts: one is compiled into a library (I'm using Scons to build that), and the other (the lessons) is shipped with the tutorial to be compiled by the end user. I'm currently looking for a good, easy way for people to build these lessons. Basically, the second part is a directory with all the lessons in it, each in its own directory. Each lesson will have at least a lesson.cpp and a main.cpp file, there may be also other files, the existence of which I will not know until after it is shipped -- the end

Ant task to run an Ant target only if a file exists?

帅比萌擦擦* 提交于 2019-11-26 12:50:55
Is there an ANT Task that would execute a block only if a given file exists? I have the problem that I have a generic ant script that should do some special processing but only if a specific configuration file is present. Available and Condition <target name="check-abc"> <available file="abc.txt" property="abc.present"/> </target> <target name="do-if-abc" depends="check-abc" if="abc.present"> ... </target> Adam This might make a little more sense from a coding perspective (available with ant-contrib: http://ant-contrib.sourceforge.net/ ): <target name="someTarget"> <if> <available file="abc

Is it possible to alias a branch in Git?

别等时光非礼了梦想. 提交于 2019-11-26 12:42:04
问题 I am looking into using git on a massive scale. I was hoping to increase adoption and make things easier by calling the master branch trunk. This can and will give SVN users some feelings of comfort. I know I can create a branch called trunk but that seems to deviate from the git norms and might cause some users to get confused. I know that I can also create and delete tags to my heart\'s content but when I checkout those tags it tells me it is a non local branch which is just fine with me

How can I get CMake to find my alternative Boost installation?

半世苍凉 提交于 2019-11-26 12:18:24
问题 I have installed the most recent version of Boost in /usr/local (with includes in /usr/local/include/boost and libraries in /usr/local/lib/boost ) and I am now attempting to install Wt from source, but CMake (version 2.6) can\'t seem to find the Boost installation. It tries to give helpful suggestions about setting BOOST_DIR and Boost_LIBRARYDIR, but I haven\'t been able to get it to work by tweaking these variables. The most recent error message that I get is that it can\'t find the

Multiple settings gradle files for multiple projects building

有些话、适合烂在心里 提交于 2019-11-26 12:08:50
问题 I have the following project structure -->Starnderd Location -->Project1 -->settings.gradle -->build.gradle -->Subproject11 -->build.gradle -->Subproject12 -->build.gradle -->Project2 -->settings.gradle -->build.gradle -->Subproject21 -->build.gradle -->Subproject22 -->build.gradle -->build.gradle -->settings.gradle Idea of above project structure is that we have multiple projects which contains subprojects, each project can have dependencies to other projects. Also subprojects inside the

Maven: how to do parallel builds?

馋奶兔 提交于 2019-11-26 11:49:08
问题 When you build with maven on a multicore / multi-CPU machine it would often be possible to build different subprojects in parallel. Is there a way to do this with maven? Is there a plugin for this / whatever? 回答1: Maven 3 (as of beta 1) now supports parallel builds as an experimental feature. For example, mvn -T 4 clean install # Builds with 4 threads mvn -T 1C clean install # 1 thread per cpu core mvn -T 1.5C clean install # 1.5 thread per cpu core Full documentation can be found on the

SVN checkout ignore folder

£可爱£侵袭症+ 提交于 2019-11-26 11:48:59
问题 Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server. edit: Ignore externals isn\'t an option. I have some externals that I need. 回答1: You can't directly ignore folders on a checkout, but you can use sparse checkouts in svn 1.5. For example: $ svn co http://subversion/project/trunk my_checkout --depth immediates This will check files and directories from your project trunk into 'my_checkout', but not recurse into those directories. Eg: $ cd my

How and why do I set up a C# build machine? [closed]

烈酒焚心 提交于 2019-11-26 10:04:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I\'m working with a small (4 person) development team on a C# project. I\'ve proposed setting up a build machine which will do nightly builds and tests of the project, because I understand that this is a Good Thing. Trouble is, we don\'t have a whole lot of budget here, so I have

Can the “Application Error” dialog box be disabled?

落爺英雄遲暮 提交于 2019-11-26 09:36:55
问题 I am using Hudson as a continuous integration server to test C/C++ code. Unfortunatly, I have a bug somewhere that causes memory corruption, so on some Windows machines I will sometimes get a \"Application Error\" dialog box explaining that an instruction referenced memory that could not be read. This dialog box pops up and basically hangs the test run, as it requires manual intervention. Is there a way to prevent this dialog box from appearing, so that the test run simply fails and is

Automatically remove Subversion unversioned files

安稳与你 提交于 2019-11-26 08:44:27
问题 Does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build VMware.) 回答1: Edit: Subversion 1.9.0 introduced an option to do this: svn cleanup --remove-unversioned Before that, I use this python script to do that: import os import re def removeall(path): if not os.path.isdir(path): os.remove(path) return files=os.listdir(path) for x in files: fullpath=os.path.join(path, x) if os