ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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"
>which indeed created the Apply.class.  


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

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>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message