ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From otisg <>
Subject classpath refid in Junit task does not work with Ant 1.5?
Date Fri, 12 Jul 2002 18:27:21 GMT

Using Ant version 1.5.

Is it possible that the optional Junit task
ignores a nested <classpath>?  That seems to
be the case here.

I have a case like this:

        <junit printsummary="yes" ....more
	    <classpath refid="test.classpath"/>

            <batchtest todir="${reports.dir}">

This 'test.classpath' is set as:
    <path id="test.classpath"

'test.classpath' is a property set in a
properties file that IS being read.

However, when I run ant with -verbose, I see
the invocation of JUnitTestRunner class, but
the classpath does not contain the value
specified in test.classpath.

Because of that my tests fail with
ClassNotFound exception.

Does this sound familiar to anyone?
I was able to specify the classpath as
described above, with Ant 1.4.1.

Note that the classpath does get set if I
use it like this:

        <junit printsummary="yes"  .....>

		<pathelement location="${build.classes.dir}"/>

Get your own "800" number
Voicemail, fax, email, and a lot more

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

View raw message