JOE

Description

Invokes the Java Optimization Engine on a set of file(s).

To use the joe task, set the destdir attribute to the name of the directory where JOE must write the processed files. You also need to specify the source directory using the srcdir attribute. Optionally, you can also set the listfiles attribute to see which file is being optimized. At last, the codestyle attribute will allow you to specify the coding style of the optimized java files.

Parameters

Attribute Description Required
srcdir Location of the java files. Yes, unless nested <src> elements are present.
destdir Location to store the optimized java files. Yes, otherwise JOE could overwrite your source files!
codestyle Indicates which coding style will be used to write the optimized files; you can choose between Avalon, JBoss and Sun; defaults to Avalon. No
listfiles Indicates whether the source files to be optimized will be listed; defaults to no. No

Examples

  <joe srcdir="${src}"
         destdir="${build}"
         codestyle="Avalon"
         listfiles="true"
  />

optimizes all .java files under the ${src} directory, and stores the optimized .java files in the ${build} directory. The coding style used is Avalon, and JOE will display the name of the file being optimized.