Thanks a lot

Regards,
Irfan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to