build-process

Custom build rules for Eclipse

大憨熊 提交于 2019-12-01 22:16:47
I have a Java project that uses some autogenerated source code. This source code is produced by a command-line tool --- Bison, actually --- from a special source file. I would like a way to have the Java source automatically regenerated whenever necessary when I press the 'build' button in Eclipse. Is this possible, and if so, how? Normally I'd integrate this into the project makefile, but of course this is Java, and it doesn't use makefiles. I've looked at ant, but ant seems rather hostile to traditional command-line tools. I know something like this is possible with the built-in Eclipse

Maven + Mercurial for Build Numbers

白昼怎懂夜的黑 提交于 2019-12-01 20:36:14
问题 I can't figure out how to get a Mercurial revision id put into my Maven build (ideally I would like it in the MANIFEST of my jars and war). The closest solution I could find is: mvn -DbuildNumber=`hg id -i` Which won't really work for Windows or my Hudson server. Luckily Hudson tags my builds but I would like some more assurance if the builds were also tagged with the Mercurial changset id. 回答1: Have a look at this previous question and the link from the accepted answer. Basically, you want

Managed Source Control Hosting and Continuous Integration with CVSDude and CruiseControl.net

泄露秘密 提交于 2019-12-01 20:31:18
For my own project at home, I'm using the rather excellent managed subversion hosting from CVSDude . As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want a full build process to kick off upon check-in. Has anyone managed to get CruiseControl.net working with CVSDude? My collegue Mike has this blog post where someone from CVSDude said: "Your can use our post-commit call back facility to call a URL on your server, which passes variables relating to the last checkin (variables detailed in our

Maven + Mercurial for Build Numbers

≯℡__Kan透↙ 提交于 2019-12-01 19:47:26
I can't figure out how to get a Mercurial revision id put into my Maven build (ideally I would like it in the MANIFEST of my jars and war). The closest solution I could find is: mvn -DbuildNumber=`hg id -i` Which won't really work for Windows or my Hudson server. Luckily Hudson tags my builds but I would like some more assurance if the builds were also tagged with the Mercurial changset id. Pascal Thivent Have a look at this previous question and the link from the accepted answer. Basically, you want to do the same thing except that you'll want to use the buildnumber:hgchangeset goal with

Visual Studios Link.exe error: “extra operand”

寵の児 提交于 2019-12-01 16:37:07
Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're seeing the following error: _X86_Win32/Debug/Intermediate/OurApp.exe LINK: extra operand `/subsystem:windows' Try `LINK --help' for more information It appears to be using the same version of visual studios as the other machines. Has anyone encountered this problem before? It looks like there's a copy of the GNU link utility somewhere in the search path. This message isn't from the Microsoft linker. 来源: https://stackoverflow.com/questions/136237/visual-studios-link-exe-error-extra-operand

How to setup an Eclipse Project with multiple Subprojects (OSGi-Bundles)

痞子三分冷 提交于 2019-12-01 16:24:28
Sherlog is an OSGi-based log analyzer, if I import this project as an workspace snapshot I receive lot's of projects in my workspace, but I would prefere to have them as subprojects in a project. The other option would be to checkout from svn, but then I face other problems (I don't know how to setup the dependencies for automatically build) Does anyone have an idea or good links on this topic? Thanks Thorbjørn Ravn Andersen EDIT: For Eclipse 4.5 and newer please see https://stackoverflow.com/a/34134833/53897 Eclipse does not support subprojects. The Eclipse way of life is one or more projects

Using mapper & fileset to copy files into a different subdirectory?

馋奶兔 提交于 2019-12-01 16:05:00
I want to create an Ant target that copies files in a directory to a destination directory with the same folder structure, plus one more subfolder appended. For example, the source is: a/b/c/foo.pdf d/e/f/bar.pdf I want the destination to be: a/b/c/x/foo.pdf d/e/f/x/foo.pdf Here is my target so far, but it doesn't appear to be doing anything: <copy todir="${dest.dir}"> <fileset dir="${src.dir}" casesensitive="yes"> <include name="**${file.separator}foo.pdf" /> </fileset> <mapper type="glob" from="foo.pdf" to="x${file.separator}foo.pdf" /> </copy> What am I missing? You could use a regexp

Is C# compile/build an incremental process?

流过昼夜 提交于 2019-12-01 15:18:32
问题 Our solution contains lots of C# projects. There are complicated dependency relationship between them, eg. project A/B/C, A dependents on B, B dependents on C. If I change one file in project C, then rebuild the solution, project A,B,C will be rebuild together. In C++, build contains two process, compile and link. If I change one file in project C, then I build the solution, the relevant file in A and B will be compiled(other's files won't be compiled, their .obj will be reused in link

Visual Studios Link.exe error: “extra operand”

戏子无情 提交于 2019-12-01 14:36:07
问题 Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're seeing the following error: _X86_Win32/Debug/Intermediate/OurApp.exe LINK: extra operand `/subsystem:windows' Try `LINK --help' for more information It appears to be using the same version of visual studios as the other machines. Has anyone encountered this problem before? 回答1: It looks like there's a copy of the GNU link utility somewhere in the search path. This message isn't from the Microsoft linker. 来源:

How to determine if all objects are serializable in a given namespace?

北城以北 提交于 2019-12-01 10:31:36
Some background: We require all of our DTO objects to be serializable so that they can be stored in session or cached. As you can imagine, this is extremely annoying and prone to error... is there any automated way (ideally as part of the build process) using Visual Studio 2010 to ensure that all classes in a namespace are marked with the [Serializable] attribute? You can't find all possible classes in a namespace - but you can find all classes within a given assembly which have the specified namespace, and check those. string dtoNamespace = ...; Assembly assembly = ...; var badClasses =