Skip to content

Using Ant


Starting to use Another Neat Tool.

Ant

Using Ant

Here are the ant targets we’ll be using.

  • General Commands
    • $ ant clean
      • This will clear out all the compiled code in preparation for a full build of all java files.
    • $ ant init
      • The creates all the directories needed for building your projects.
    • $ ant jdoc
      • This will generate all the javadoc for your projects.
  • Analyzer
    • $ ant compile_analyzer
      • This will compile your analyzer application. It won’t create the jar file, it just compiles. When you are developing and trying to get things to compile, use this command.
    • $ ant build_analyzer
      • This will run the compile_analyzer command, then create your analyzer.jar file, and place it in the lib/ directory. When you run your app, it runs from this file, not the classes directory. We’ll still use the runanalyzer.sh script to run the app.
  • Labs
    • $ ant compile_labs
      • This will compile all labs, and I mean all of them. All of your labs must be compilable except maybe the one you are working on. All others must be compilable.
    • $ ant build_labs
      • This will build the labs jar file so you can run the labs. You would normally just use this command since it will cause run the compile command.
  • Submitting Projects
    • $ ant backup
      • This command will compress your projects directory into a file named projects_backup.tar.gz. It then places it into your backups directory. Save this file somewhere off the computer as a backup. We need multiple levels of backup in software development.