ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sumit.Srivast...@ubs.com>
Subject Overwrite Property at runtime
Date Wed, 23 Jan 2008 22:00:27 GMT
Hi Experts,

	I need to assign value of property at run time in ANT .
This property variable is defined inside a Java file which has to be set
during run time. Its NOT related to Ant properties.

I tried using <sysproperty key="VARIABLE" value="VALUE" /> but it didn't
help.

For eg
	<junit fork="yes" maxmemory="1024m" forkmode="perBatch"
haltonfailure="yes">
			<sysproperty key="VARIABLE" value="VALUE" />
				<classpath refid="tests.path" />
				<formatter type="plain" />
				<batchtest fork="yes"
todir="path/to/reports">
					<fileset dir="/test/cases">
						<include
name="**/*TestCase.java" />
						<exclude
name="**/*TestSuite.java" />
					</fileset>
				</batchtest>
			</junit>


Can someone please help with this ?


Thanks,
Sumit

Mime
View raw message