You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Pedro Salazar <pe...@ptinovacao.pt> on 2003/03/17 21:10:47 UTC
property set in sub-task not defined
Greetings,
I'm trying to set a property in a sub-task, but it not working. I put
here a sample test:
<target name="X">
<antcall target="Y" />
<echo message="Z is ${Z}" />
</target>
<target name="Y">
<property name="Z" value="OK" />
</target>
If I call the target X, I will get the output "Z is ${Z}" instead what I
expect to happen, "Z is OK".
How can I set a property in a sub-task if we know that properties are
immutable?
thanks,
Pedro Salazar.
--
<id name="pedro salazar">
<email>pedro-b-salazar@ptinovacao.pt</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>