I don't know yet how to put there ant code in a way that it will not conflict with wordpress tags, so build file is attached here: build.xmlbuild.xml This script is assuming that you follow some basic conventions. You need to do only 2 things to adapt it to your project. - change project name to your project name in 1st line of script - set path to your main class in "mainClass" property. Then you are ready to go. Assuming you have all your source files and resources in 'src' folder and dependent libraries in 'lib' folder, script can generate .jar file (including libraries), javadoc and some stuff around those. I was searching for something similar and universal to use in my small projects and I didn't find anything like that, so I created it myself.
Sample Ant script for small projects
2007-12-16