ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@grafidog.com>
Subject Re: Peformance Task usage from custom task
Date Wed, 02 Sep 2009 18:05:59 GMT
>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.Raja@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-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