ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject write junit taskdef
Date Tue, 17 Jun 2003 20:58:44 GMT
This has got to be trivial, but I haven't been able to figure it out, so 
I'd appreciate any help.  I want to write a <taskdef> which defines the 
junit task so that I can use it in my project.  I don't want to put 
junit.jar in the classpath or in junit's lib directory.

Taskdef requires a classpath and class name.  I grepped ant.jar and 
optional.jar for junit, but can't find any junit-related classes.  
Digging around, I found 
/org/apache/tools/ant/taskdefs/ which contains the 
following lines:

Which seems to hint at the appropriate class name, but I still can't 
find the class in the jars.  I checked in the junit jar as well.  Please 
tell me what I'm missing.

<taskdef name="junit" classpath="/home/bozo/junit.jar"

Thanks in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message