WW uses Ant to automate its build process. So if you are unfamiliar with Ant,
you might want to take a look at Jakarta for more details.
If you would like to build from the source, you need to invoke Ant and pass an appropriate target.
For example, to build WW documentation you would type build docs. Ant would load the build.xml
script and invoke the docs target.
The main targets used to build WW are the following:
- main - will compile all classes and create appropriate jar, war, and ear files.
These files will be located in dist/lib for jar files and dist/deploy for war and ear files.
Main is the default target in the script file which means you can type build with no
target and Ant will invoke main.
- compile - will compile all classes.
- docs - will call javadocs target and then copy regular documentation to dist/docs.
- javadocs - will build the API. The output is dist/docs/api.
- dist - calls main and docs targets. It also copies the source and examples to dist.
- test-web - Build the instrumented test-web webapp. In order to run the unit tests
this target must be run first, and then deployed into your servlet container
- test - Run the unit tests. This unit tests expect a servlet container running with
the test-web webapp deployed in it. You can configure the url and server location by modifying
build.properties in the root directory.
- clover.report - Creates the clover html reports for code coverage of the unit tests.
This target requires that you had previously run the test target
- clean - removes build and dist directories.