ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Doubt in property file
Date Mon, 19 May 2008 07:41:03 GMT
> 1: Can we have more than one property file defined in ANT's build.xml

<property file=""/>
<property file=""/>

> 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
> 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="${}.properties"/>
    <property file=""/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message