ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: possible to have variables in tasks?
Date Fri, 13 Dec 2002 17:45:12 GMT
All properties set during the execution of the target called by <antcall>
are lost (out-of-scope) when the <antcall> _returns_! And the usual
immutability rule still applies. One must can dependent targets executed
conditionally (using if/unless attributes) to set properties visible to
others tasks. --DD

-----Original Message-----
From: Andy Kriger [] 
Sent: Friday, December 13, 2002 11:49 AM
To: Ant-User
Subject: possible to have variables in tasks?

I have an antcall that sets some parameters.
Can the task being called dynamically define params/properties based on the
incoming parameters?

Target Source calls Target Target with Param test="test"
I want Target to be able to define a number of params within it using
test="test" that will be reused by various tasks (e.g. mkdir, java, javac,

Is this possible?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message