ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Smeets" <>
Subject Re: Project.setProperty(String,String)?
Date Tue, 26 Jun 2001 13:50:51 GMT
I did some further investigation and the property gets changed every token

So, how come the target which consists of:

<target name="testing">
  <echo message="${engine}"/>

still prints the former token??
I don't understand this behaviour.....

Because I retrieve the Target and execute it twice (there are two tokens in
my string).
Is this causing this behaviour, should I clone it or is it just impossible??

Thanks in advance,

----- Original Message -----
From: "Stefan Bodewig" <>
To: <>
Sent: Tuesday, June 26, 2001 3:43 PM
Subject: Re: Project.setProperty(String,String)?

> Bram Smeets <> wrote:
> > The problem is that when I set the property the first time, the task
> > executes by referencing the property.  The second time I set teh
> > property, the task executes by referencing the old value!
> The only explanation I have for this is that your property is a
> user-property (which means it cannot be changed by
> Project.setProperty).
> I've added a message when an override is ignored to
> Project.setProperty in CVS.
> Stefan

View raw message