AW: how to call a predefined target or macroin build.xml from Custom Ant task

2009-09-02 Thread Jan.Materne

AW: Peformance Task usage from custom task

2009-09-02 Thread Jan.Materne
According to your stacktrace the NPE occurs in line 62 of the listener Its source is available here: http://ant-contrib.svn.sourceforge.net/viewvc/ant-contrib/ant-contrib/trunk/src/main/java/net/sf/antcontrib/perf/AntPerformanceListener.java?revision=130&view=markup long stop_time = master

[External Task] changing URL for jarpatch task

2009-09-02 Thread Norbert Barbosa
1271a1272,1298 > > JarPatch is a task that generates a zip file resulting of the > diff between the content of 2 jar files. > The resulting diff file can be use as a patch for a previous > installation > (just ensure that the generated patch.zip file is located

Re: Peformance Task usage from custom task

2009-09-02 Thread Raja Nagendra Kumar
Hi Dale, Thank you for the pointer. Tried this in custom ant askgetProject().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.AntPerformanceLis

Re: how to call a predefined target or macroin build.xml from Custom Ant task

2009-09-02 Thread Raja Nagendra Kumar
Hi, I see there is a way to execut target using getProject().executeTarget().. but don't find a way to execute the macro. Any pointers pl. Regards, Nagendra -- View this message in context: http://www.nabble.com/how-to-call-a-predefined-target-or-macroin-build.xml-from-Custom-Ant-task-tp252

Re: Peformance Task usage from custom task

2009-09-02 Thread Dale Anson
>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 On Wed, Sep 2, 2009 at 10:24 AM, Raja Nagendra

Peformance Task usage from custom task

2009-09-02 Thread Raja Nagendra Kumar
Hi, Is it possible to set the performance monitoring as described in http://antelope.tigris.org/nonav/docs/manual/bk03ch27.html (i.e enable and disable such data collection) from a custom ant tasks java code. My need to enable monitoring only during the execution of the custom task and remove i

how to call a predefined target or macroin build.xml from Custom Ant task

2009-09-02 Thread Raja Nagendra Kumar
Hi, I am looking to call a Macro defined in the project though custom task. Similarly calling of target. Both macro and target are defined the build.xml and my java based custom task should be able to call it with min overhead.. i.e with the same overhead as calling the macro from build.xml or ca

Re: PropertyHelper API

2009-09-02 Thread Peter Reilly
Yes, I think that I added the null return to allow local properties. Peter On Tue, Sep 1, 2009 at 1:08 PM, Matt Benson wrote: > > > --- On Tue, 9/1/09, Stefan Bodewig wrote: > >> From: Stefan Bodewig >> Subject: PropertyHelper API >> To: dev@ant.apache.org >> Date: Tuesday, September 1, 2009,