ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Irfan.Sa...@t-systems.com>
Subject RE: Doubt in property file
Date Mon, 19 May 2008 08:10:36 GMT
Thanks a lot

Regards,
Irfan

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Monday, May 19, 2008 1:11 PM
To: user@ant.apache.org
Subject: AW: Doubt in property file

> 1: Can we have more than one property file defined in ANT's build.xml

yes
<property file="one.properties"/>
<property file="two.properties"/>


> 2: If there are two properties file and let's say I have one property
> defined in these two property file with different values then
build.xml
> will pick up which value for this property.

Properties are immutable, so the propfile which was loaded first, wins.
So a common pattern is

    <property file="${user.name}.properties"/>
    <property file="build.properties"/>



Jan

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


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


Mime
View raw message