Building JMRI with AntThose 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://ant.apache.org/. Install it, then:
- Create a directory to contain your project.
- In that project directory, get the code from GitHub. This will create a jmri subdirectory where Ant will run, and load it with source, tests and resources. It will also create and populate directories for xml, libraries, etc. in the project directory.
- Change to the newly created jmri subdirectory. To compile, type ant debug.
- To run the program, type ant decoderpro or ant panelpro, and sit back to watch it go.
- To run the test suite, type ant alltest.
- To build a jmri.jar file, type ant dist. Note that you don't have to create the jmri.jar file to run the program.
- To erase all previously compiled results and force the program to be entirely built from scratch, type ant clean.
To make sure everything is working, before you e.g. commit your code back, please do:
and make sure the tests run cleanly.
ant clean ant alltest
A new JMRI checkout should build cleanly. If not, please check with the JMRIusers or jmri-developers mailings lists for help.