AW: [Subclipse-users] scope of revisionProperty from status in svn-ant task
From: Oliver Niekrenz <oliver_at_niekrenz.de>
Date: 2006-10-19 18:35:56 CEST
> A property is usually only visible within the "target" it was created a-la
Sorry, this is wrong.
Ant properties are globally visible, there are no local properties.
'antcall' is the reason for this behaviour. All changes of an antcall invocation will not reflect to it's callee.
However if you typed
<target name="build" depends="update">
you would've seen the value of repos.version
It's like the difference between a procedure and a function. A pure function (without sideeffects) returns a value. It solely relies on it's argument and does not change anything else. A procedure on the other side would be pretty much useless without sideeffects if you think over it.
> <echo>${repos.version}</echo> <!-- will display blank! -->
Well, not quite blank. If a property is not set 'echo' will output '${repos.version}' verbatim.
Hope this helped,
---------------------------------------------------------------------
|
This is an archived mail posted to the Subclipse Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.