Note that if your intention is to profile your own task, you can also use any profiler you want. An ant build is a java application like an other.
Gilles Scokart 2009/9/3 <jan.mate...@rzf.fin-nrw.de> > 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.r...@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-unsubscr...@ant.apache.org > >For additional commands, e-mail: dev-h...@ant.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org > For additional commands, e-mail: dev-h...@ant.apache.org > >