Building JMRI with Ant
Those of you who prefer a command line approach might want to investigate "ant", a better make-like utility for Java projects. Ant is available for download at http://jakarta.apache.org/ant/index.html/. Install it, then:- Create a "project" directory.
- In the project directory, do a CVS checkout of the "ant" module from our repository. This will create a "java" subdirectory where Ant will run, and load it with source, tests and resources. It will also create and populate directories for xml and libraries in the project directory.
- Change to the newly created java subdirectory. To compile, type "ant compile"; to create a .jar file, type "ant dist". Note that you don't have to create the .jar file to run the program.
- To run the program, type "ant decoderpro" or "ant jmridemo", and sit back to watch it go.
- To run the test suite, type "ant alltest".
- To build a jmri.jar file, type "ant dist".