Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Monday, November 19, 2007

Usage of java ant

Ant can be used from many IDEs, but I typically use it from a DOS/Command window.

  1. Set up ant as above.
  2. Copy build.xml (see below) into your project directory.
  3. Open a DOS/Command window and move (cd) to the directory containing your source files.
  4. Type ant to compile your source files. The source="1.4" option is already specified so assertions are enabled at compile time.
  5. I use a text editor and flip back and forth between editing and the DOS window to make changes, fix bugs, etc.
  6. Run the program with "java -ea YourProg" ("-ea" enables run-time assertions).

No comments:

Post a Comment

Archives