Ant can be used from many IDEs, but I typically use it from a DOS/Command window.
- Set up
antas above. - Copy
build.xml(see below) into your project directory. - Open a DOS/Command window and move (
cd) to the directory containing your source files. - Type
antto compile your source files. Thesource="1.4"option is already specified so assertions are enabled at compile time. - I use a text editor and flip back and forth between editing and the DOS window to make changes, fix bugs, etc.
- Run the program with "
java -ea YourProg" ("-ea" enables run-time assertions).
No comments:
Post a Comment