Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 15334 invoked from network); 13 Feb 2004 15:03:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Feb 2004 15:03:27 -0000 Received: (qmail 47466 invoked by uid 500); 13 Feb 2004 15:03:20 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 47429 invoked by uid 500); 13 Feb 2004 15:03:20 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 47409 invoked from network); 13 Feb 2004 15:03:20 -0000 Received: from unknown (HELO junior.lgc.com) (134.132.72.99) by daedalus.apache.org with SMTP; 13 Feb 2004 15:03:20 -0000 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id i1DF2AQ06473 for ; Fri, 13 Feb 2004 09:02:10 -0600 (CST) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Fri, 13 Feb 2004 09:03:21 -0600 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id <15LBVD5S>; Fri, 13 Feb 2004 09:03:20 -0600 Message-ID: <830BF4914C3C4B4EB1C438D93ABF897A04D846@lgchexch011.ad.lgc.com> From: Dominique Devienne To: "'Ant Developers List'" Subject: RE: task for antlib jars Date: Fri, 13 Feb 2004 09:03:19 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Jose Alberto Fernandez [mailto:jalberto@cellectivity.com] > Why does the antlib file or JAR would stay open beyond > loading the classes and reading the antlib.xml? > > Maybe what is needed here, is a way to tell ALL AntClassLoaders > to please close their open files (JARS) and reopen if needed later. > > After all, keeping the JARs open is just an optimization. Well, after reading the antlib.xml, sure you could close the JAR, but once a URLClassLoader from the JDK starts using classes from the JAR (and most likely even before that), that JAR will stay open so it's not swapped under the JVM. I know for sure the Linux JVM memory-maps those JARs in the process address space, and it's very possible the Windows VM does something similar (thus the lock on the JAR file). I'm not sure Ant wants to go into the business of writing some custom ClassLoader that would not exhibit this 'standard' behavior of SUN's JDKs... --DD --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org