ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <Nagendra.R...@tejasoft.com>
Subject Re: Performance of Ant <antcall>
Date Fri, 02 Oct 2009 06:11:08 GMT

Hi Stefan,

This could be one workaround due to lack of straight approach to call the
target.
I am surprised why such a thing did not exist from day one.. Pl. let me know
if this approach has any ant design related issues.

I see macros are callable directly, targets would also be called though
dependents , but with in the target calling another target is not straight
(isolation principles are being applied in all the existing tasks antcall,
subant, ant).

For now we did write light wait target call as custom task and preformance
has improved a lot (in over case there were 6 ant calls)

Regards,
Nagendra

Stefan Bodewig wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Performance-of-Ant-%3Cantcall%3E-tp25676250p25710855.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message