Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Monday, November 19, 2007

Simple build.xml file

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.

antCompiles source files (defaults to build).
ant buildCompiles source files. Same as above.
ant docsCreates javadoc documentation in a docs directory. It creates the docs directory if necessary. docs/index.html is the root of the documentation.
ant cleanDeletes 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

Archives