build-process

Ant build consoles get clobbered by dependent projects in Eclipse

I have a set of dependent projects in Eclipse, each with its own Ant build script. If I make a change in multiple projects, then select "Build All" (Ctrl+B), each Ant build is invoked in the correct order. But if there is an error in one project, Eclipse still tries to build the other projects also, and in the process clobbers the Ant co...

Building RAD7 project from command line.

Hey We have existing projects set with compilation dependencies in a RAD7 IDE. Is it possible to create automated build script from the existing project structure? We have IBM portal projects and regular WEB and enterprise projects. Maven and Ant are possible solutions but can we use these tools to build existing projects from command l...

How to avoid copying 40M of java lib's within a WAR when the WAR's size is 41M?

At the moment my build process consists of repackaging the war file with all required java libraries under WEB-INF/lib and then copying the war file to development/demo/production server to be redeployed by tomcat. The packaged war file's size is about 41M and it has at the moment something like 40M of external java libraries. There ha...

Handling different API versions in same Java source

I'm sure this is a dumb question, but.. We have the same Java source files and we want to use a different version of a Java API (jar file) depending on the client we are building our app for. The newer version of the API has the methods setAAA() and setBBB() which we reference in our Java source: if (...) { api.setAAA(a); api.se...

Why is there no need for Maven in .NET?

I have the impression, that in the .NET-world, there is no real need for a Maven-like tool. I am aware that there is Byldan and NMaven (is it still alive?), but I have not yet seen a real-world project that uses them. Also in most .NET projects I have worked on, there never was voiced an need for a Maven-like tool. The problems Maven m...

Maven Deploy To Multiple Tomcat Servers

What is the most minimal example of deploying a war to multiple tomcat servers using maven that can be written? I've tried the following URLs and asked the mailing list, but not coming up with anything that was short and would simply work. http://www.nabble.com/Deploying-to-Multiple-Servers-at-Once-td21592419.html The example should...

How to incorporate code generation to a C# solution?

(This question is rather similar, but the only answer does not seem to be answering my needs). I am thinking of using Thrift in C#, and am considering how exactly the build process would work. Do C# projects in Visual Studio 2008 support custom build actions that generate C# classes? I found the "Custom Tool" option, but I'm not sure i...

Should a build/deployment script include the configs?

I'll keep this simple: So, if I've got the "classic" three environments (dev/test/production), should the build script include the configurations within the deployment distribution, or is that something which should be separate and deployed separately? Two schools of thought that I've heard: Your artifacts should be exactly the s...

Automating library build

I don't have any experience tweaking Xcode build scripts. I've created a static library. When the referencing app builds for debug simulator, I have to make sure the library also has a recent debug simulator build, rather than say device debug. Is there a way to build in the referencing project and have the static library automatical...

Using Ant to ensure a properties file only contains unique entries

Is there a way in Ant which can check that a specified properties file only contains unique keys? A build failure would be the required behaviour if any duplicates are found. ...

Classpath validation in ant

I have a <path id="..."> in my build.xml. Before invoking the compiler I want to verify that every jar/directory on the classpath exists and print a warning with the missing ones. Does anybody know an existing solution or do I need to write my own task for that? OK, I decided to go for a custom task. Here it is, in case anybody eve...

Database migrations: manage with build script or automatic on app startup?

I'm in the process of developing a deployment system for a new web app and I'm wondering where the best point in the process to manage database migrations is (the question of how to do the migrations is another problem entirely). It seems there are two ways to go: Use a migration script that can either be run manually from command lin...

How to Set the Working Directory in NAnt?

I am just getting started using NAnt. I was working from a tutorial, and just trying to set a target to clean my solution on build. My Visual Studio Solution structure is as follows: Solution Folder Project Folder Project Folder Tools Folder NAnt Folder The NAnt .exe file resides in the Tools/NAnt folder. My .build file is also i...

Is there a better way of viewing team build logs?

Currently the msbuild logs for team build are appalling as they are just plain text and are very difficult to read. Also the ones created by my build are approx 30Mb and take quite a while to download (our TFS server is in our datacentre). Does anyone know any way of being able to view these logs easier, prefereably integrated with eith...

How to get rid of maven snapshot versions

I have been using maven for a while now. But I've never learnt how to get rid of the snapshot version. Please share some articles on how to do a release of the artifacts. i.e. how do I publish my 0.0.1-SNAPSHOT versions to (say) 1.0.0 ...

How do you "refactor" ant build.xml files ?

I'm working on a large C++ system built with ant+cpptasks. It works well enough, but the build.xml file is getting out of hand, due to standard operating procedure for adding a new library or executable target being to copy-and-paste another lib/exe's rules (which are already quite large). If this was "proper code", it'd be screaming o...

How to delete files in Visual Studio Pre-build event command line

I am trying to delete files in my $(TargetDir) within visual studio before building a project. How do you have to format command line to get around this problem I am getting below? ...

Speeding up build times in ASP.NET

I am currently involved in a ASP.NET project with about 40 projects in the solution. We are doing all our development in cloned Virtual PC environments so all developers have identical setups. That's all good, managing dependencies is easy, however building the solution is horribly slow. Virtual PC can only utilize one CPU so I'm really ...

Skipping tests in some modules in Maven

I would like my Maven builds to run most unit tests. But there are unit tests in one project which are slower and I'd like to generally exclude them; and occasionally turn them on. How do I do this? I know about -Dmaven.test.skip=true, but that turns off all unit tests. I also know about skipping integration tests, described here. ...

Disable generating PDB files in MsBuild

I'm looking to squeeze some more speed out of my build and was wondering if I could instruct msbuild to not generate PDB files. I'm passing the Configuration=Release and DebugSymbols=false property with no luck. ...