You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2004/01/07 10:12:52 UTC

Re: Memory utilization on ANT 1.6.0

On Tue, 23 Dec 2003, Antoine Lévy-Lambert <an...@antbuild.com>
wrote:

> Because of these type of issues, a  number of tasks which in the
> execute method are changing instance variables are resetting these
> instance variables at the end of the execute method.

Historically the tasks are doing so for a different reason.  In Ant 
< 1.6 task instances could get reused.  Say you have target A
depending on B and somebody runs "ant A B", then B will get executed
twice and reuse the instances created in the first execution on the
second run.

AFAIU task instances are no longer supposed to get reused that way in
1.6 and thus the guarding code should be obsolute now.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org