Jan, On 28/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 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. 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"/> and this is the result: D:\Projects\dy\tests>ant Buildfile: build.xml BUILD FAILED D:\Projects\dy\tests\build.xml:70: taskdef class buildmagic.Apply cannot be found Total time: 0 seconds Of course, I tried modifying the classpath attribute's value, but no change. Sorry for these embarassing questions :-( Please have mercy ... -- cheers, Jakob. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]