ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tambascio, Larry" <>
Subject RE: Junit task MIA, but pvcs task works fine
Date Fri, 16 May 2003 18:02:31 GMT

Thanks for the suggestion.  I assume you meant the optional and junit jars
being on the system classpath.  Putting those things on the classpath had no
discernable effect for me.  Adding the optional jar to the classpath for the
junit task didn't help either.

I thought putting the optional jar on my system's classpath would've been
the key.

Not sure why ant can find other optional tasks, but not the junit task!!

Thanks anyway.


-----Original Message-----
From: Martin Gainty []
Sent: Friday, May 16, 2003 1:35 PM
To: Ant Users List
Subject: Re: Junit task MIA, but pvcs task works fine


here is a sample if what I had used.
Yes Junit.jar and optional.jar are on CLASSPATH beforehand

<target name="test-run" description="just runs the tests, nothing more">
<junit haltonfailure="no">

<classpath refid="classpath"/>
<batchtest fork="yes" todir="${reports}">
 <formatter type="xml"/>
 <fileset dir="${compile.outdir}">
    <include name="**/*TestCase.class"/>
    <exclude name="**/TestAll.class"/>



----- Original Message -----
From: "Tambascio, Larry" <>
To: <>
Sent: Friday, May 16, 2003 1:23 PM
Subject: Junit task MIA, but pvcs task works fine

> Greetings,
> I have a number of JUnit tests that work nicely stand alone, and I thought
> should start to include these tests in the build.  The problem is that I
> the error "Could not create task of type: junit.", and it makes comments
> about where to put the optional jar file.  The optional.jar file is in
> ${ANT_HOME}/lib, and after perusing the archives, I also put the junit jar
> file in there too, to no avail.
> Here's the target.  I am using version 1.4.1 of ant.
> <target name="test">
> <junit haltonfailure="on" printsummary="on">
> <classpath refid="class.path" />
> <formatter type="plain" />
> <test
> name="com.ironmountain.digitalarchive.evaa.onboarding.OnBoardingSuite" />
> </junit>
> </target>
> Just to be sure that the optional jar is THERE and usable, I stuck a PVCS
> get in there, and that did work.  So the optional jar is where it should
> and usable.  I'm not sure what else to try at this point.
> TIA!!
> -Larry
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message