You are right: Properties are immutable!

Your problem seems to be a different one:
If you do not run the target, the property wont be set.
Make sure you set the property in a task that is called before you use it 
elsewhere.


-- 
Jürgen Knuplesch         
-----Ursprüngliche Nachricht-----
Von: Alexander Ziller [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 17. November 2008 09:33
An: user@ant.apache.org
Betreff: Setting a global property in a target. Possible?

Hi

I'm trying to set a property inside a target. In the definition of ant 
properties, it is said that they are immutable. "Beeing set once, they cannot 
be reset again". But I had to find out that properties set inside a <target> 
are not valid outside of said target.

Is this intended and if so, are there ay elegant solutions to make this 
property project-based?

Thanks

Alex



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to