>> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to