ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: AW: Peformance Task usage from custom task
Date Thu, 03 Sep 2009 10:38:25 GMT
You could also subclass that listener and overwrite the [task|target][Starts|Finished] by calling
the build[Starts|Finished] method. 
Would that help?

Or use the StopWatchTask?
http://ant-contrib.svn.sourceforge.net/viewvc/ant-contrib/ant-contrib/trunk/src/main/java/net/sf/antcontrib/perf/StopWatchTask.java?revision=130&view=markup


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Raja Nagendra Kumar [mailto:Nagendra.Raja@tejasoft.com] 
>Gesendet: Donnerstag, 3. September 2009 10:30
>An: dev@ant.apache.org
>Betreff: Re: AW: Peformance Task usage from custom task
>
>
>Nope Jan..
>
>On making such correction it giving error in  line  188
>
>i.e the line 
>        StopWatch sw = ( StopWatch ) targetStats.get( be.getTarget() );
>
>of targetFinished()..
>
>It appears to me that AntPerformanceListener or the interface 
>BuildListener
>is not custom tag friendly.. 
>
>Some of the things I see from the interface are.. they are meant for
>printing the report of entire build and not between when it is 
>added and
>when it is removed..
>
>I saw some where SubAntListener etc.. which means not sure 
>impact of calls
>antcall and ant and subant tags usage..
>
>May be it would be nice to put  AntPerformanceListener  or 
>BuildListener 
>towards TaskPerfListener level rather than entire build level..
>
>
>Regards,
>Raja Nagendra Kumar,
>C.T.O
>www.tejasoft.com
>
>
>
>-- 
>View this message in context: 
>http://www.nabble.com/Peformance-Task-usage-from-custom-task-tp
>25260860p25271781.html
>Sent from the Ant - Dev mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>

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


Mime
View raw message