ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: property value setting
Date Mon, 12 Mar 2007 17:28:32 GMT
Chun Ji wrote:
> I have a build.xml file in which there is a property value "PW90". And this value is
initialized through the command line, such as: ant -f build.xml -DPW90="...". 
> 
> However, I just realize that 95% of time, the value is same. So I am just wondering if
I could set a default value for this "PW90" inside the build.xml. 

yes. <property name="PW90" value="something"/>


>Only when "-DPW90=.." is specified on the command line, then it will be overwritten by
the input value. 

Anything set on the command line ovrrides any definitions in your build 
file...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message