[EMAIL PROTECTED] wrote:
6) Get the properties from a target after antcall
At the moment if you have a target that define some properties, the only way to call it in order to get the values is using "depends".
This is a problem as you may want to invoke your target not necessary at the beginning or you may want to pass some parameters.
That's why it would be nice to have a "keepProperties" (or whatever) attribute to the <ant> and <antcall> task.



Sounds for a <return> task or a <antcall returnproperty=""/>.

AntContrib has a couple of tasks that handle this specific situation, see <antfetch> and <antcallback>. <antfetch> is analogous to <ant>, <antcallback> is analogous to <antcall>, both allow returning property values set in the remote target. Also see AntContrib's <runtarget> or Antelope's <call> task (these are identical) which call a target in the scope of the current project. These eliminate the overhead of <antcall> and make any properties set in the called target available in the current project.

Dale


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to