ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Lindwall <JLindw...@Xifin.com>
Subject javac task: Spaces in dir name
Date Tue, 16 Jul 2002 18:16:15 GMT



> -----Original Message-----
> From: tek1 [mailto:tek1@pobox.com]
> 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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message