Software Update:
Couple of new releases to note:
Cruisecontrol 2.6
PMD 3.9
Findbugs 1.1.3
ant-contrib 1.0b3, a broadly used helper library for Ant, was released in October. This release adds some new tasks. Check out their read-me for more.
The folks over at Apache have released Ant 1.7. It's the first major release in almost 18 months. Head on over to http://ant.apache.org to check it out.
In our current Ant build setup, we parse a lot of the source analysis xml reports to gather figures on code bugs,coverage, etc and compile them into a single report. This is currently achieved by means of a combination of grep,gawk,sed, and the math
Kevin Lee has just published a new book dealing with setting up continuous integration environments around ant, clearcase and cruisecontrol.
A recent problem arose at work where our code coverage tool, Cobertura ceased to work for a particular application. Well actually, "ceased" is the wrong word. It didn't work from the get-go. We had however, been using Cobertura succesfully with other apps. We discovered that the problem was due this particular app already having it's bytecode instrumented by a tool called Versant Enhancer. So we had both Versant Enhancer and Cobertura trying to instrument the same bytecode with the result that either the code didn't work, or we got no coverage figures, or both.
While we use PMD at work for our static code analysis, much has been made of late of FindBugs, a similar tool to PMD developed by the University of Maryland. Many reviews of both PMD and FindBugs suggest using them to complement one another.
A problem recently cropped up with my build that was caused by the xerces xml parser trying to validate an xml using the dtd reference in the file. The problem was that the dtd was stored on the web. The web in turn, was only accesible through our corporate http-proxy server, which neither Ant nor the JVM knew anything about.
According to James Strachan, expert group lead and Groovy co-founder (with Bob McWhirter), Groovy started with a desire for "an alternative to javac, which had the power and expressiveness of Ruby/Python but generated regular Java classes (at runtime or build time) and that worked directly with Java classes without some other layer. So I wanted a Groovy object to descend from java.lang.Object, with collections being java.util.Collection, lists being java.util.List, support for Java arrays, Java beans, and for all the APIs in the system to be based on Java 2 Platform, Standard Edition (J2SE) and Java 2 Platform, Enterprise Edition (J2EE)."
One of the most well known articles on the "continuous integration" aspect of Extreme Programming has recently been revised and brought up to date.
If you're beginning to write JUnit tests, but haven't fully got your head around the whole unit-testing "thing", then a visit to the following site will probably prove useful:
I'm currently evaluating (part-time) a number of different options for build automation. Maven+Continuum is a nice neat package, but (from initial inspection), not as flexible as Ant+Cruisecontrol+Ivy.
The following article "Ant in Anger" is an excellent guide to using Ant effectively in a production environment. As well as detailing best practices, it also lets the reader know what some of Ant's shortcomings are and how to work around them. It's included as part of every Ant distribution, but can be hard to find. You can find the article here: