>I do not think that your second option will work. (taskdefing
>to a different name)
Mmmh, indeed ...
Why? (funny classloader stuff I think...)
BTW: I wouldnt advice reassigning standard tasks .... Maybe
<presetdef>ing some....
Jan
<project>
<property environment="env"/>
<property name="ant.jar" location="${env.ANT_HOME}/lib/ant.jar"/>
<property name="ant-junit.jar"
location="${env.ANT_HOME}/lib/ant-junit.jar"/>
<property name="junit.jar"
location="${user.home}/.ant/lib/junit.jar"/>
<path id="project.main.path">
<pathelement location="${ant.jar}"/>
</path>
<path id="project.test.path">
<path refid="project.main.path"/>
<pathelement location="${ant-junit.jar}"/>
<pathelement location="${junit.jar}"/>
</path>
<pathconvert property="p" refid="project.test.path"/>
<echo>${p}</echo>
<taskdef name="my.junit"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpathref="project.test.path"/>
<my.junit/>
</project>
Buildfile: build.xml
[echo]
C:\ant\17.3\lib\ant.jar;C:\ant\17.3\lib\ant-junit.jar;C:\Profile\mat\.an
t\lib\junit.jar
BUILD FAILED
C:\tmp\ant-taskdef2nd_junit\build.xml:28: taskdef A class needed by
class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be
found: junit/framework/Test
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]