----- Original Message -----
From: "Jared Nedzel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 7:40 PM
Subject: bug in Junit target for classpath refs?


> Folks:
>
> I'm having trouble using classpath refs with the Junit target.
>
>     <path id="project.class.path">
>       <pathelement path="${CLASSPATH}" />
>       <!-- now add in the jar -->
>       <pathelement location="${dist}/lib/AntTest-${DSTAMP}.jar" />
>       <pathelement
>       location="/home/nedzel/temp/ant2/dist/lib/ant2.jar"/>
>     </path>
>

Just guessing.

Is the class which is not found by junit included in one of the jar's? If so
it may be a problem that these files are silently ignored (and not included
in the path) if they don't exist while this part of build.xml is "executed".

I'm too lazy to validate this, sorry.

You can test this if you insert something like

<property name="testcp" refid="project.class.path"/>
<echo message="Classpath for JUnit: ${testcp}"/>

just before you call JUnit.

If the class is in one of the jar's and that one is not included in the
path... well, I think you know what's the problem then :-(

Nico


Reply via email to