ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Himawan, Budyanto" <BHima...@wms.com>
Subject RE: Passing state accross task invocations
Date Tue, 29 Jun 2010 21:06:27 GMT
It's within one process.

So I have the following line in my custom ant task

private static A a = new A();

Inside of my A constructor I just did a System.out.println and I see
that getting called several times.

Budyanto

-----Original Message-----
From: Michael Ludwig [mailto:milu71@gmx.de] 
Sent: Tuesday, June 29, 2010 3:50 PM
To: user@ant.apache.org
Subject: Re: Passing state accross task invocations

Himawan, Budyanto schrieb am 29.06.2010 um 09:36 (-0500):
> 
> I have written a custom ant task and I want to be able to store info
> from one invocation of the task to another.

Within one process, or across processes?

> I used a static class but it appears that the static class gets
> re-initialized on every invocation. Is there a way to make it not do
> that?

Don't get it. Please specify your requirement more exactly.

-- 
Michael Ludwig

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


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


Mime
View raw message