ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Performance of Ant <antcall>
Date Wed, 30 Sep 2009 11:07:14 GMT
On 2009-09-30, Raja Nagendra Kumar <Nagendra.Raja@tejasoft.com> wrote:

> Yes, I could but I loose the flexibility of calling from command line.

<macrodef name="originalTarget">
  <sequential>
    original-content-of-your-target
  </sequential>
</macrodef>

<target name="originalTarget">
  <!-- may need to set attributes from property values -->
  <originalTarget/>
</target>

should work for that usecase.

> To our surprise.. when such a changes are done, they work from xml but it
> does not work custom task (based on project.createTask() and execute() )
> methods.

If you mean Project#createTask doesn't work for macrodef-ed or
presetdef-ed tasks - this is true.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message