ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spencer Marks <sma...@digisolutions.com>
Subject Re: Exporting System.properites values
Date Mon, 07 May 2001 17:52:01 GMT
Hello again.

While I am using Ant 1.3 grabbing the latest optional.jar solved the 
problem described below.
Sorry for the wasted bandwidth.

Spencer

On Monday, May 7, 2001, at 12:52 PM, Spencer Marks wrote:

> Hi,
>
> I believe I am using 1.3
>
> ant tests -v
> Warning: JAVA_HOME environment variable is not set.
>   If build fails because sun.* classes could not be found
>   you will need to set the JAVA_HOME environment variable
>   to the installation directory of java.
> Ant version 1.3 compiled on March 2 2001
>
> Buildfile: build.xml
> Detected Java Version: 1.3
> Detected OS: Mac OS X
> ...
>
> BUILD FAILED
>
> /Users/sam/devo/projects/build.xml:144: Class 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask doesn't support 
> the nested "sysproperty" element
>
>
> On Monday, May 7, 2001, at 12:18 PM, Stephane Bailliez wrote:
>
>> 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