I did some further investigation and the property gets changed every token
found.
So, how come the target which consists of:
<target name="testing">
<echo message="${engine}"/>
</target>
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,
Bram
----- Original Message -----
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:43 PM
Subject: Re: Project.setProperty(String,String)?
> Bram Smeets <[EMAIL PROTECTED]> 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
>