ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Gupta <>
Subject Re: Ant book?
Date Tue, 03 Jul 2001 14:19:29 GMT
>From the manual ...

You can also set properties that override properties
specified in the buildfile (see the property task).
This can be done with the -Dproperty=value option,
where property is the name of the property, and
value is the value for that property. This can also be
used to pass in the value of some environment
variables. You can also access environment variables
using the property task. Just pass -DMYVAR=%MYVAR%
(Windows) or -DMYVAR=$MYVAR (Unix) to Ant - you can
then access these variables inside your buildfile as


--- wrote:
> Hi All,
> I am a new bie to the 'Ant'. I am trying to build my
> set of  java files
> with the 'Ant'. I want to pass some arguments to the
> 'build.xml'
> dynamically.I will call the 'Ant' from the batch
> file.Here is the scenario
> Scenario:-
> =========
> I want to pass the value for these two property from
> the command line.
> <property name="build" value=""/>
> <property name="dist"  value=""/>
> Any help will be appreciated.Thanks in advance.
> Thanks,
> Rupam

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail

View raw message