$ANT_HOME/lib
CLASSPATH
Preparation:
ant-classloadertask.jar
into $ANT_HOME/lib
.
<taskdef resource="net/jtools/classloadertask/antlib.xml"/>
<project xmlns:cltask="antlib:net.jtools.classloadertask" .../>
CLASSPATH
is NOT RECOMMENDED by Ant's manual.
Preparation:
ant-classloadertask.jar
to the CLASSPATH
.
<taskdef resource="net/jtools/classloadertask/antlib.xml"/>
<project xmlns:cltask="anttask:/net.jtools/antclassloadertask" .../> <taskdef resource="net/jtools/classloadertask/antlib.xml" url="anttask:/net.jtools/antclassloadertask"/>
Preparation:
ant-classloadertask.jar
resides into a Environment variable.
Assume, the jar is located in the directory "C:\tools\ant-classloadertask" you would set a variable
set ANT_CLTASK_HOME=C:\tools\ant-classloadertask.
<property environment="env."/> <taskdef resource="net/jtools/classloadertask/antlib.xml" classpath="${env.ANT_CLTASK_HOME}/ant-classloadertask.jar"/>
<project xmlns:cltask="anttask:/net.jtools/antclassloadertask" .../> <property environment="env."/> <taskdef resource="net/jtools/classloadertask/antlib.xml" classpath="${env.ANT_CLTASK_HOME}/ant-classloadertask.jar" url="anttask:/net.jtools/antclassloadertask"/>
Preparation:
ant-classloadertask.jar
in a directory with a predefined relative location to your build directory.
<taskdef resource="net/jtools/classloadertask/antlib.xml" classpath="myrelativePath/ant-classloadertask.jar"/>
<project xmlns:cltask="anttask:/net.jtools/antclassloadertask" .../> <taskdef resource="net/jtools/classloadertask/antlib.xml" classpath="myrelativePath/ant-classloadertask.jar" url="anttask:/net.jtools/antclassloadertask"/>