Library Dependencies

The following libraries are needed in your CLASSPATH or in the install directory's lib directory if you are using the indicated feature. Note that only one of the regexp libraries is needed for use with the mappers (and Java 1.4 and higher includes a regexp implementation which Ant will find automatically). You will also need to install the Ant optional jar containing the task definitions to make these tasks available. Please refer to the Installing Ant / Optional Tasks section above.

Jar Name Needed For Available At
An XSL transformer like Xalan or XSL:P style task If you use JDK 1.4, an XSL transformer is already included, so you need not do anything special.
jakarta-regexp-1.3.jar regexp type with mappers http://jakarta.apache.org/regexp/
jakarta-oro-2.0.7.jar regexp type with mappers and the perforce tasks
To use the FTP task, you need jakarta-oro 2.0.1 or later, and commons-net
http://jakarta.apache.org/oro/
junit.jar junit tasks http://www.junit.org/
xalan.jar junitreport task http://xml.apache.org/xalan-j/
stylebook.jar stylebook task CVS repository of http://xml.apache.org/
testlet.jar deprecated test task Build from the gzip compress tar archive in http://avalon.apache.org/historiccvs/testlet/
antlr.jar antlr task http://www.antlr.org/
bsf.jar script task
Note: Ant 1.6 and later require Apache BSF, not the IBM version. I.e. you need BSF 2.3.0-rc1 or later.
http://jakarta.apache.org/bsf/
Groovy jars Groovy with script and scriptdef tasks
You need to get the groovy jar and two asm jars from a groovy installation. The jars are groovy-[version].jar, asm-[vesion].jar and asm-util-[version].jar. As of groovy version 1.0-beta-7, the jars are groovy-1.0-beta-7.jar, asm-1.4.3.jar and asm-util-1.4.3.jar.
http://groovy.codehaus.org/
The asm jars are also available from the creators of asm - http://asm.objectweb.org/
netrexx.jar netrexx task, Rexx with the script task http://www2.hursley.ibm.com/netrexx/
js.jar Javascript with script task
If you use Apache BSF 2.3.0-rc1, you must use rhino 1.5R3 - later versions of BSF work with 1.5R4 as well.
http://www.mozilla.org/rhino/
jython.jar Python with script task
Warning : jython.jar also contains classes from jakarta-oro. Remove these classes if you are also using jakarta-oro.
http://jython.sourceforge.net/
jpython.jar Python with script task deprecated, jython is the prefered engine http://www.jpython.org/
jacl.jar and tcljava.jar TCL with script task http://www.scriptics.com/software/java/
BeanShell JAR(s) BeanShell with script task.
Note: Ant 1.6 and later require BeanShell version 1.3 or later
http://www.beanshell.org/
jruby.jar Ruby with script task http://jruby.sourceforge.net/
judo.jar Judoscript with script task http://www.judoscript.com/index.html
commons-logging.jar CommonsLoggingListener http://jakarta.apache.org/commons/logging/index.html
log4j.jar Log4jListener http://jakarta.apache.org/log4j/docs/index.html
commons-net.jar ftp, rexec and telnet tasks
jakarta-oro 2.0.1 or later is required in any case together with commons-net.
For all users, a minimum version of commons-net of 1.2.2 is recommended. Earlier versions did not support autodetection of system type or had significant bugs.
http://jakarta.apache.org/commons/net/index.html
bcel.jar classfileset data type, JavaClassHelper used by the ClassConstants filter reader and optionally used by ejbjar for dependency determination http://jakarta.apache.org/bcel/
mail.jar Mail task with Mime encoding, and the MimeMail task http://java.sun.com/products/javamail/
jsse.jar Support for SMTP over TLS/SSL
in the Mail task
Already included in jdk 1.4
http://java.sun.com/products/jsse/
activation.jar Mail task with Mime encoding, and the MimeMail task http://java.sun.com/products/javabeans/glasgow/jaf.html
jdepend.jar jdepend task http://www.clarkware.com/software/JDepend.html
resolver.jar 1.1beta or later xmlcatalog datatype only if support for external catalog files is desired http://xml.apache.org/commons/.
jsch.jar sshexec and scp tasks http://www.jcraft.com/jsch/index.html
JAI - Java Advanded Imaging image task http://java.sun.com/products/java-media/jai/
IContract icontract task
Warning : the icontract jar file contains also antlr classes.
To make the antlr task work properly, remove antlr/ANTLRGrammarParseBehavior.class from the icontract jar file installed under $ANT_HOME/lib.
http://www.reliable-systems.com/tools/


Copyright © 2000-2004 The Apache Software Foundation. All rights Reserved.