ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@imediation.com>
Subject RE: Exporting System.properites values
Date Mon, 07 May 2001 16:18:00 GMT
Are you sure you running Ant 1.3 ?

run ant with -version to check.

Cheers,

-- 
 St├ęphane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 



> -----Original Message-----
> From: Spencer Marks [mailto:smarks@digisolutions.com]
> Sent: Monday, May 07, 2001 5:40 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: Exporting System.properites values
> 
> 
> Hi,
> Thanks for your help.
> Would you mind tell me what's wrong with this snippet:
> 
> First, the error message:
> 
> /Users/sam/devo/projects/innoverity/RuleMaker/build.xml:144: Class 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
> doesn't support 
> the nested "sysproperty" element
> 
> Here's how I am trying use it:
> 
> <target name = "junit">
> 		<available property = "junit.properties" classname = 
> "junit.framework.TestCase"/>
> 	</target>
> 	<target name = "compiletests" depends = "compile">
> 		<mkdir dir = "${build.tests}"/>
> 		<javac srcdir = "${test.dir}" destdir = 
> "${build.tests}">
> 			<include name = "**/*JUnit*.java"/>
> 			<!-- include the build.dir so we can 
> run the tests -->
> 			
> 			<classpath>
>                 <fileset dir="./lib">
>                    <include name="**/*.jar" />
>                  </fileset>
> 				<pathelement path = 
> "${build.dir}/classes"/>
> 			</classpath>
> 
> 		</javac>
> 	</target>
> 	<target name = "tests" depends = "compiletests">
> 		<junit printsummary = "yes" fork = "no" haltonfailure = 
> "no">         		
> 		     <formatter type = "plain" usefile="false"/>
> 		     			<sysproperty 
> key="testdata.negative0" value="spencer"/>
> 
> 			<classpath>
> 				<pathelement location = "${test.dir}"/>
> 				<pathelement location = "${src.dir}"/>
> 				<pathelement path = 
> "${java.class.path}"/>
> 				<pathelement path = "${build.tests}"/>
> 				<pathelement path = "${build.dest}"/>
>                  <fileset dir="./lib">
>                    <include name="**/*.jar" />
>                  </fileset>
> 				<pathelement path = 
> "${build.dir}/classes"/>
> 			</classpath>
> 			<batchtest fork = "yes">
> 				<fileset dir = "${test.dir}">
> 					<include name = 
> "**/*JUnit*.java"/>
> 					<exclude name = 
> "**/AllTests.java"/>
> 				</fileset>
> 			</batchtest>
> 		</junit>
> 	</target>
> 
> Thanks, Spencer
> 
> On Saturday, May 5, 2001, at 03:58 PM, Robert Leftwich wrote:
> 
> >       <sysproperty key="conf.dir" value="${unit.test.conf}"/>
> >       <sysproperty key="log4j.configuration" 
> > value="file:${unit.test.conf}/log4j.properties"/>
> 

Mime
View raw message