Hi Dale, Thank you for the pointer.
Tried this in custom ant ask getProject().addBuildListener(new net.sf.antcontrib.perf.AntPerformanceListener()); this at the end of the build give the below exception.. java.lang.NullPointerException at net.sf.antcontrib.perf.AntPerformanceListener.buildFinished(AntPerfor manceListener.java:62) at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2037) at org.apache.tools.ant.Main.runBuild(Main.java:778) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Not sure what else needs to be added.. Dale Anson wrote: > > From a custom task, you have access to a Project object, which has > both add and remove build listener methods, which means you should be > able to add and remove listeners on the fly. I haven't tried this, > but I don't see why it wouldn't work. > > Dale > -- View this message in context: http://www.nabble.com/Peformance-Task-usage-from-custom-task-tp25260860p25263224.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