ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Michael Caine" <jmca...@alum.rpi.edu>
Subject RE: property setting
Date Tue, 26 Jun 2001 02:58:32 GMT
thank you.
i realize this ought to be an ant-user post.  my mistake.  sorry for
littering this group.

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Monday, June 25, 2001 3:50 PM
To: ant-dev@jakarta.apache.org; mcaine@artlogic.com
Subject: Re: property setting


--- "J. Michael Caine" <jmcaine@alum.rpi.edu> wrote:
> why does "message = red" always get printed here?  shouldn't "message =
> green" be printed?
>
> <project name="test">
> 	<property name="color" value="red"/>
> 	<target name="bogus">
> 		<property name="color" value="green"/>
> 		<echo message="message = ${color}"/>
> 	</target>
> </project>

Nope -- once a property is set, it can't be reset, except when using the
<antcall>/<ant> tasks. See the doc for info on those tasks.

P.S. This type of question should really go to ant-user.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


Mime
View raw message