build-process

Build and Integration Environment for Java/J2EE

is there such a thing in a standard manner? including Java Source Code - Test Code - Ant or Maven JUnit Continuous Integration (possibly Cruise Control) ClearCase Versioning Tool Deploy to Application Server in the end I 'd like to have an automatic Build and Integration Environment. ...

Changing target directory for a pre-build command in VS 2005

I'm programming in VB using Visual Studio 2005 Professional. I have a code munger perl script that generates some of the *.vb files that I want to compile. The script and the associated files are in my project directory, and when I run the script from the OS command prompt, it writes the files in the same directory, which is what I wan...

Continuous Integration with multiple projects/languages/environments

I want to setup a CI server (Hudson) here at my place and already set up a test environment where I can build some of our projects. Right now I'm doing .NET and Java, but there are some other languages coming up. One project really needs a special environment (3rd party software, compiler, Linux as OS) and I wondered if someone can give...

Can I use perltidy's HTML formatter in my automated Perl build?

I'm using Module::Build to perform build, test, testpod, html, & install actions on my Perl module that I'm developing. The HTML files that are generated are okay, but I'd be much happier if I could somehow configure Module::Build to use the perltidy -html formatting utility instead of its own HTML formatter. Anyone know of a way I c...

Multiproc builds in VS2008

I remember reading somewhere about multiproc builds in VS2008, only I can't find the article now. Does anyone know how to turn this on, or even if it is possible? ...

Ant replace in maven2?

I'm looking for some way to replace patterns in files with values, during build time. E.g. a configuration file may look the same except that different machines requires different hostnames in some setting. In that case i want to have a template file, where hostname is replaced with @@hostname@@ Then when building, I want to create sep...

Visual Studio Setup and Deployment build fails with no errors

I have a setup and deployment project that, on our build server, reports the following in the summary: ========== Rebuild All: 25 succeeded, 2 failed, 0 skipped ========== I don't know what the two are that failed, though I believe one of them is the vdproj project because if I run the build without the installer there are no error...

(c++) The benefits / disadvantages of unity builds?

Hi, since starting at a new company I've noticed that they use unity cpp files for the majority of our solution, and I was wondering if anyone is able to give me a definitive reason as to why and how these speed up the build process?, as I would've thought that editing one cpp file in the unity files will force recompilation of all of th...

Using maven to build/deploy/use projects with JNI.

I am trying to use maven to build a project that depends on a JNI wrapper around the OpenCV computer vision library. I've been able to "maven-ize" the OpenCV wrapper here: http://ubaa.net/shared/processing/opencv/ by using FreeHEP's NAR maven plugin, but the documentation for that plugin is somewhat lacking. I've been able to create ...

Building Linux packages for multiple distributions and versions

My company has a software product that's written in C for a Linux platform, built with autotools and distributed via binary packages. To make the binaries, we first produce a source RPM and then compile the source from the SRPM. Currently we only provide RPM packages for 64-bit Fedora 10, but we want to start providing packages for mul...

Is it possible to have version-independent DLL references in a class?

I would like to create a class that compiles into a single DLL. This DLL would add functionality to an existing product. To make this work, the custom class references DLLs contained in the underlying product. These references are needed to compile. Everything works fine here and the custom class compiles. I can drop the DLL produ...

Why does Maven have such a bad rep?

There is a lot of talk on the internet about how Maven is bad. I have been using some features of Maven for a few years now and the most important benefit in my view is the dependency management. Maven documentation is less than adequate, but generally when I need to accomplish something I figure it out once and then it works (for exam...

Is reducing number of cpp translation units a good idea?

I find that if there are a lot of classes the compilation time is dramatically increased when I use one *.h and one *.cpp file per class. I already use precompiled headers and incremental linking, but still the compile time is very long (yes I use boost ;) So I came up with the following trick: defined *.cpp files as non-compilable de...

Generating a build from TFS

When you are going to release a build using TFS, what do you normally do? Just use a specific changeset, create a branch or label/tag? Note: this build is not for release, it is for our staging/user acceptance environment. ...

Ant loadproperties failed (bcel error?)

I'm working on a simple build script that should get some constants from a java class file and use them as the version numbers in my file names. I use Eclipse and its own Ant, but put bcel-5.2.jar in my libs folder and into the classpath for the Ant call. <target name="generate_version" depends="compile"> <loadproperties srcfile="${dir...

What do you do while re(build|deploy|start)ing?

What are good ways for spending the time waiting for my project to rebuild/redeploy/restart? I am not interested in suggestions how to make these waiting times shorter. I know there are many tools, principles and practices for avoiding endless waiting times. But still several times a day I have to wait for some of these things to happen...

Does MSBuild know if a project needs to be recompiled?

First, I have a base assumption from watching Visual Studio compile things with its default .*proj files that, if you build the same solution twice in a row, it detects that nothing has changed and seems to fly through the solution build. Does this mean it knows that nothing was changed in a project and doesn't have to make a new DLL ou...

What's the best way to manage storing builds in source control?

I'm using Perforce, if that changes the tune of the answers at all. I'd like to implement a build process that, when a solution is built in a "release" mode, tags the entire source tree with a label and pushes the output of the build (DLLs, webpages) to a /build/release directory in source control. This directory should always contain t...

Best practises for organising structure/running "builds" on a large solution

I am making a very large web app (currently at 70 projects and 150k loc but with a lot more to do). I use FinalBuilder to run build scripts. However, what are the best practises for structuring such a large project? What about build dependencies? What effect does the structure of my projects have on the performance on the code (if any)?...

Automatic updating of Xcode build phases for a target?

It seems that in a standard Xcode project, the default target automatically "updates" the Compile Sources build phase with any newly-added implementation files. This saves the user from having to drag each new file into the phase. I have defined a second target, which contains a large amount of unit testing code, which is linked as a di...