You have things in the wrong order: ant doesn't over-ride in a later
format. The first time a variable is defined, that's when it's set.
For example:
<property name="name" value="john" />
<property name="name" value="scott" />
...
<echo message="${name}" />
Will print out john.
Therefore, in your example, all three will be read. When a variable is
defined, it stays that way and usually (note: exceptions are <ant> and
<antcall>, see documentation) can't be changed.
JDG
> -----Original Message-----
> From: Jay Garala [mailto:jay@(protected)]
> Sent: Thursday, October 09, 2003 12:26 PM
> To: tomcat-user@(protected)
> Subject: [OFF-TOPIC] Ant <property file...
>
>
> If I have
>
> <property file="build.properties"/>
> <property file="../build.properties"/>
> <property file="${user.home}/build.properties"/>
>
> in my build.xml, will ant use the first found property file
> or use all found and override existing with latter found?
>
> Jay Garala
> Senior Analyst
> Electrosoft Services, Inc.
> 7918 Jones Branch Drive, Suite 600
> McLean, VA 22102
> (703) 918-4907
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)