ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Fix <jakob....@gmail.com>
Subject Re: apply task trouble for command using < and >
Date Mon, 28 Nov 2005 10:45:36 GMT
Jan,

On 28/11/05, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message