Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
property set in sub-task not defined

property set in sub-task not defined

2003-03-17       - By Pedro Salazar
Reply:     1     2     3     4     5     6     7     8  

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@(protected)</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.