ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: apply task trouble for command using < and >
Date Mon, 28 Nov 2005 11:16:58 GMT
>> I think these steps should works
>> - compile the class (needs ant.jar on classpath)
>> - <taskdef>, e.g. <taskname classname="buildmagic.Apply" 
>> name="apply2"/>
>> - use the "new" task
>
>Now I feel really stupid, but what the hell ... ok, I compiled 
>the class like this
>  javac -classpath "./lib/ant.jar" Apply.java
>
>which indeed created the Apply.class.  

ok


>I moved it in the 
>ant/lib directory.  Then I included this line in the build file:
>  <taskdef name="apply2" classpath="${ant.library.dir}"
>classname="buildmagic.Apply"/>

moving anything to ant/lib is not the right way.
1) only JARs are added to Ant´s classpath
2) separate your own tasks from Ants - keep the installation clean
Just use a nested <classpath> in <taskdef>


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message