ScriptRunner uses Ant in a very normal fashion, except perhaps that at least version 1.7.1 is required. The targets are:
Target | Depends on | Purpose |
---|---|---|
build | compile | Build ScriptRunner jar |
clean | Clean up after build | |
The compiled classes and other files that will end up in the jar are assembled in a directory, build, created by build and deleted by clean. The jar file itself is created in lib. | ||
compile | Compile core source | |
dist | test, docs | Generate the release |
distclean | clean | Clean up after creating release |
distsrc | dist | Generate source code release |
Distributions, with or without source, are assembled in a directory, ScriptRunner-N.M, created by dist or distsrc and deleted by distclean. | ||
docs | javadocs | Generate docs |
javadocs | Generate javadocs for core classes | |
These are synonymous. The javadocs are created in docs/javadocs and are deleted by distclean. | ||
test | testbuild | Run ScriptRunner unit tests |
testbuild | clean, build | Build ScriptRunner unit tests |
The unit test classes and required files are created in or copied to the build directory. The test target re-creates the build directory and runs all tests. The test output goes into build too. |