ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Pilz <>
Subject Re: overwriting property specified in different files.
Date Wed, 09 Jul 2008 10:53:31 GMT

that is standard behaviour for ant. The first property definition wins. 
A simple solution for this example is to load the second property file 

Also see the <variable> Task in ant-contrib, but I never needed it.


wizshah schrieb:
> I have two following lines added to my build.xml.
> 1. <property file="${env.DEVHOME}/config/"/>
> 2. <property
> file="${env.DEVHOME}/usr/home/${env.projectname}/"/>
> It can be seen that I have two being loaded. Thats runs
> fine. All properties are loaded. But here the problem is that if I have the
> same property in the second file it does not overwrite the old one. 
> for instance I have a temp variable set like temp=temp in the first config
> i.e. config/
> where as I want to over write it in the second config i.e.
> ${env.projectname}/ like temp=xyz
> But ant does not overwrite it. Can any one help me out how I can achieve
> this?

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

View raw message