For simple development where the source and object files are in the same directory and there's no explicit package (typical student project organization), the following build.xml file can be used. This works correctly if all top-level classes are in separate files. The following ant commands can be used.
ant | Compiles source files (defaults to build). |
ant build | Compiles source files. Same as above. |
ant docs | Creates javadoc documentation in a docs directory. It creates the docs directory if necessary. docs/index.html is the root of the documentation. |
ant clean | Deletes all .class files and the docs directory. This must be done whenever a class has been renamed or removed, before final builds, and just every so often to help detect "code rot". |
description="Generate javadoc documentation.">
No comments:
Post a Comment