ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Task connection cleanup
Date Mon, 09 Jun 2003 16:44:42 GMT
Have a look at the <sound> task for a built-in task that does very 
thing, registers a BuildListener (not the same class, but it could be 
certainly).

	Erik


On Saturday, June 7, 2003, at 07:23  PM, David Morris wrote:

> I created an Ant task that opens a shared connection that needs to be
> cleaned up at the end of a build. So far, I have come up with three
> ideas:
>
> 1. Wrap the task(s) in a connection task.
> 2. Cleanup on finalize.
> 3. Use a build listener and somehow register the connection for cleanup
> (can a task implement a BuildListener?)
>
> I would appreciate any comments on these ideas or alternative
> suggestions.
>
> Thanks,
>
> David Morris
>
> ---------------------------------------------------------------------
> 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