ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Junit task MIA, but pvcs task works fine
Date Fri, 16 May 2003 18:19:25 GMT
Larry-
find all the other junit,jar on the CLASSPATH and yank them ( leave the
%ANT_HOME%\lib\junit.jar alone )
If that doesnt work redownload junit.jar from junit.org
and place it in the aforementioned lib
Hth,
Martin
----- Original Message -----
From: "Tambascio, Larry" <Larry.Tambascio@imrm.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, May 16, 2003 2:14 PM
Subject: RE: Junit task MIA, but pvcs task works fine


> Oh yeah, that's there.  Still not working, whether or not it's on the
> classpath.  That's why this is so weird.  All these usual fixes don't seem
> to be working for me.
>
> Thanks for the effort!!
>
> -----Original Message-----
> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Sent: Friday, May 16, 2003 2:06 PM
> To: Ant Users List
> Cc: Larry.Tambascio@imrm.com
> Subject: Re: Junit task MIA, but pvcs task works fine
>
>
> <ant-home>/lib/junit.jar
>
> Hth,
> Martin
> ----- Original Message -----
> From: "Tambascio, Larry" <Larry.Tambascio@imrm.com>
> To: "'Ant Users List'" <user@ant.apache.org>
> Sent: Friday, May 16, 2003 2:02 PM
> Subject: RE: Junit task MIA, but pvcs task works fine
>
>
> > Martin,
> >
> > 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.
> >
> > -Larry
> >
> > -----Original Message-----
> > From: Martin Gainty [mailto:mgainty@hotmail.com]
> > Sent: Friday, May 16, 2003 1:35 PM
> > To: Ant Users List
> > Subject: Re: Junit task MIA, but pvcs task works fine
> >
> >
> > Larry
> >
> > 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"/>
> >   </fileset>
> > </batchtest>
> >
> > </junit>
> >
> > Hth,
> > Martin
> >
> > ----- Original Message -----
> > From: "Tambascio, Larry" <Larry.Tambascio@imrm.com>
> > To: <user@ant.apache.org>
> > 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
> > I
> > > should start to include these tests in the build.  The problem is that
I
> > get
> > > 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
> > be
> > > and usable.  I'm not sure what else to try at this point.
> > >
> > > TIA!!
> > >
> > > -Larry
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
View raw message