ant -version
to check. JMRI requires at least version 1.10.6, and should work
with any version after that.
If you need to install it, Ant is available for download at https://ant.apache.org/ or via the usual package managers.
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.
jmri
subdirectory. To compile, type ant
debug
.ant decoderpro
or ant panelpro
, and
sit back to watch it go.ant alltest
.ant dist
. Note that you don't have to
create the jmri.jar
file to run the program.ant clean
.To make sure everything is working, before you e.g. commit your code back, please do:
ant clean alltest
and make sure the tests run cleanly.
A new JMRI checkout should build cleanly. If not, please check with the JMRIusers or jmri-developers mailings lists for help.
mvn test
mvn test -Dtest=PATTERN
to run specific tests. See Running
a Single Test for more details, including running only a single test method. An
example to run all tests in a package is mvn test
-Dtest=jmri/jmrix/openlcb/**
mvn compile net.ossindex:ossindex-maven-plugin:audit
mvn versions:display-dependency-updates
mvn versions:display-plugin-updates
mvn antrun:run -Danttarget=decoderpro
mvn antrun:run -Danttarget=panelpro
The scripts/mvn-test
includes all the options necessary to run the Travis CI
test Maven job from your local command line.