Executing ant tasks programatically via Java is fairly straightforward as shown in the following code sample. To compile and run the following code, ensure you have
ant-launcher.jar(all from the ant lib directory) on your claspath.
I’ve been blogging for exactly 1 year today.
Ever wondered what to do if JBoss causes your computer to explode?
In the past, whenever I’ve done logging within a project, I’ve used log4j as my preferred logging package. This has been primarily for historical reasons as I started developing with Java before the JDK 1.4 logging package was available.
There’s an interesting thread going on over at The Server Side based upon a comment made by Ugo Cei – “I seriously wonder why anyone would want to develop anything substantial in Java nowadays without using Spring “.