Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 17255 invoked by uid 500); 7 Jun 2003 23:23:51 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 17244 invoked from network); 7 Jun 2003 23:23:51 -0000 Received: from mail.plumcreek.com (HELO cfo-msg.plumcreek.net) (208.4.182.150) by daedalus.apache.org with SMTP; 7 Jun 2003 23:23:51 -0000 Received: from plumcreek-MTA by cfo-msg.plumcreek.net with Novell_GroupWise; Sat, 07 Jun 2003 17:23:49 -0600 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.0 Date: Sat, 07 Jun 2003 17:23:24 -0600 From: "David Morris" To: Subject: Task connection cleanup Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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