| property set in sub-task not defined | property set in sub-task not defined 2003-03-17 - By Dominique Devienne
Use the depends attribute of target instead of antcall/ant. --DD
-----Original Message----- From: Pedro Salazar [mailto:pedro-b-salazar@(protected)] Sent: Monday, March 17, 2003 2:11 PM To: user@(protected) Subject: 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@(protected)</email> <pgp-key-id>0E129E31D803BC61</pgp-key-id> </id>
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |