You can pass property values while invocation with
ant -Dpropname=propvalue
or you can ask the user for a value with task.
If you want to have multiple configurations (config as a collection
of several properties) use property files.
Then you can use -Dconfig=test for reading the values for test
environment...
Jan
> -----Original Message-----
> From: Ashutosh Sharma [mailto:ashutosh.sharma@oracle.com]
> Sent: Tuesday, November 04, 2003 12:11 PM
> To: user@ant.apache.org
> Subject: can i pass some other parameters while executing any ant
> targets
>
>
> Hi,
> I am quite new to ant.
> While executing some of the target-i want to specify some other
> parameters like classpath becoz some of the java source code
> files uses
> old-deprecated APIs.
> How can i do it?
> Here is the portion of my build.xml-which i want to run
> !-- Compiles and runs the system tests remotely using
> oracle.AllTest -->
> unless="cond-is-true">
>
> destdir="${build.test.systemTest}"
> fork="true"
> excludes="${excludedSystemTest}"
> debug="true"
>
> classpath="${build};${build.test.systemTest};${libraries_systemTest}"
> deprecation="off" >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> classpath="${build.test.systemTest};${libraries_systemTest.runtime}"
> fork="yes">
>
>
>
>
>
>
>
>
>
>
> value="-DTimingFileAppendFlag=${SystemTestTimingFileAppendFlag}"/>
> value="-DENCOUNTER_DEPENDENCIES_ON=${SystemTestEncounterDepend
> encies}"/>
>
> value="-DETS_CLIENT_LOG_LEVEL=${SystemTestETSClientLogLevel}"/>
>
>
>
> I want to include some more classpath also?
>
> --
> ===================
> With best regards :
>
> Ashutosh Sharma
> Oracle India Development Center,
> Prestige Blue Chip, #9, Hosur Road,
> Bangalore 560029
> Email: ashutosh.sharma@oracle.com
> AOL IM :AshutoshOracle
> Phone: 080-51083937
> Locaton : 4A 181
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>