| Article: |
Writing Ant Tasks | |
| Subject: | Feedback | |
| Date: | 2004-06-05 22:21:11 | |
| From: | MikeFitzgerald | |
|
Response to: Feedback
|
||
|
(1) Sure, a simple execute() could do, as described in the tutorial, which I recommeded to readers. I wrote a simple task that has a parallel structure to the more complex Jing task, following the guidelines in the first six steps of "Writing Your Own Task". Are those guidelines incorrect or out of date? If so, this section of the Ant manual needs to be updated.
|
||
Showing messages 1 through 1 of 1.
-
using classpath vs jar
2004-07-21 20:07:48 hapybrian [View]



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"
classpath="newtasks"/>
This was done using ant 1.5, and jdk 1.4
Brian