Writing Ant Tasks
Subject:   using classpath vs jar
Date:   2004-07-21 20:07:48
From:   hapybrian
Response to: Feedback

Using a class file seems to work just fine for me.
Using the "Add.class" example you use, simply
make sure your classpath contains the directory
where Add.class lives. Before running ant, I
set my class path to "blahblah;newtasks" (under
windoze). newtasks is a subdirectory of my
current directory. newtasks contains Add.class
(which is in the newtasks package). Similarly,
you can add the classpath to your taskdef line

<taskdef name="adder" classname="newtasks.Add"

This was done using ant 1.5, and jdk 1.4


1 to 1 of 1
1 to 1 of 1