Next: Building Ant
Up: Installing Ant
Previous: Unix (csh)
Contents
Index
There are lots of variants that can be used to run Ant. What you need
is at least the following:
- The classpath for Ant must contain ant.jar and any jars/classes needed
for your chosen JAXP-compliant XML parser.
- When you need JDK functionality (such as for the javac task or the
rmic task), then for JDK 1.1, the classes.zip file of the JDK must be
added to the classpath; for JDK 1.2 or JDK 1.3, tools.jar must be
added. The scripts supplied with Ant, in the bin directory, will add
the required JDK classes automatically, if the JAVA_HOME environment
variable is set.
- When you are executing platform-specific applications, such as the
exec task or the cvs task, the property
ant.home must be set to the
directory containing where you installed Ant. Again this is set by the
Ant scripts to the value of the ANT_HOME environment variable.
The supplied ant shell scripts all support an
ANT_OPTS environment
variable which can be used to supply extra options to ant. Some of the
scripts also read in an extra script stored in the users home
directory, which can be used to set such options. Look at the source
for your platform's invocation script for details.
Next: Building Ant
Up: Installing Ant
Previous: Unix (csh)
Contents
Index
Andrew Marlow
2003-07-08