> -----Original Message-----
> From: tek1 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 10:14 AM
> To: Ant Users List
> Subject: Re: junit task not working
> 
> 
> 
> regarding note #2 on:
> 
> http://jakarta.apache.org/ant/manual/OptionalTasks/junit.html
> 
> "1.Put both junit.jar and the optional tasks jar file in ANT_HOME/lib.
> 2.Do not put either in ANT_HOME/lib, and instead include 
> their locations in 
> your CLASSPATH environment variable.
> 3.Do neither of the above, and instead, specify their 
> locations using a 
> <classpath> element in the build file. See the FAQ for details."
> 
> 
> 
> *** it seems like only #1 works. ***
> 
> 
> didn't try #2 b/c don't want to mess with the CLASSPATH env variable.
> 
> 
> tried #3, as defined below, but it didn't work.
> 
>       <target name="runTests" depends="setupTests">
>               <junit fork="yes" printsummary="yes" 
> haltonfailure="yes">
>                       <classpath>
>                               <pathelement 
> path="${lib.dir}/junit.jar"/>
>                       </classpath>
>                       <test name="${test.main}" 
> todir="${tests.results.dir}" 
> outfile="${tests.results.filename}"/>
>                       <formatter type="plain" usefile="false"/>
>               </junit>
>       </target>
> 
> also tried (to no avail):
> 
>       <target name="runTests" depends="setupTests">
>               <junit fork="yes" printsummary="yes" 
> haltonfailure="yes">
>                       <classpath refid="classpath.tests"/>
>                       <test name="${test.main}" 
> todir="${tests.results.dir}" 
> outfile="${tests.results.filename}"/>
>                       <formatter type="plain" usefile="false"/>
>               </junit>
>       </target>
> 
> as well as:
> 
>       <target name="runTests" depends="setupTests">
>               <junit fork="yes" printsummary="yes" 
> haltonfailure="yes">
>                       <classpath>
>                               <path refid="classpath.tests"/>
>                       </classpath>
>                       <test name="${test.main}" 
> todir="${tests.results.dir}" 
> outfile="${tests.results.filename}"/>
>                       <formatter type="plain" usefile="false"/>
>               </junit>
>       </target>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to