>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
Kumar<nagendra.r...@tejasoft.com> wrote:
>
> 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 it once that is executed.
>
> Also, I am not interested to change the ant launch time parameters as this
> would impact entire build completion and not ideal for our needs.
>
> 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-tp25260860p25260860.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

Reply via email to