More On Cruisecontrol and Display with yDoc

In a previous entry I showed a configuration entry to allow the use of headless graphics generation on unix machines.

I have been evaluating yDoc which is a nice tool for generating jpg/svg UML object/class diagrams into the Javadoc process of a build phase. Its a great tool and I will be buying a copy.

The issue I had is that the ant javadoc tag doesn’t seem to honor the cruise headless command detailed earlier. After a little more searching through the javadocs for doclets I have found that you can achieve the same thing with the following tag entry :

<javadoc destdir="${javadoc.base.dir}"  
additionalparam="-J-Djava.awt.headless=true \-breakiterator"  

this passes the headless flag onto the running javadoc process.