From ant-dev-return-13445-apmail-jakarta-ant-dev-archive=jakarta.apache.org@jakarta.apache.org Mon May 07 22:54:59 2001 Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 61089 invoked by uid 500); 7 May 2001 22:54:55 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 61066 invoked from network); 7 May 2001 22:54:54 -0000 Message-Id: <3.0.6.32.20010508085819.00b8ca00@mail.alphalink.com.au> X-Sender: gdonald@mail.alphalink.com.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 08 May 2001 08:58:19 +1000 To: ant-dev@jakarta.apache.org From: Peter Donald Subject: Re: AntShell Cc: ant-dev@jakarta.apache.org, sdedic@netbeans.com In-Reply-To: <3AF6CE98.DB9A375D@netbeans.com> References: <3.0.6.32.20010507135552.00ad8460@mail.alphalink.com.au> <3.0.6.32.20010507154541.00796ab0@mail.alphalink.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 05:34 7/5/01 +0100, Jesse Glick wrote: >On the other hand, NetBeans also is able to invoke Javadoc in-VM and clean up >its mess after it; this code *is* open-source (nothing copied from Sun code, >just wrappers): > >http://www.netbeans.org/source/browse/~checkout~/javadoc/src/org/netbeans/m odules/javadoc/ > >EnvWrapper.java is probably of most interest. kewl. >An idea for Ant: some special classloader (variant of AntClassLoader?) which >would keep track of any classes it loaded, and also initial values of all >static fields in those classes. When you call reset(), it uses reflection to >reset all static fields. So even unknown, non-static-safe code could be run >repeatedly, so long as it was loaded via this loader (which you could enforce >via e.g. package wildcards). The following JSR would do a more comprehensive >job of it though: > >http://java.sun.com/aboutJava/communityprocess/jsr/jsr_121_isolation.html I have asked to serve on JSR ;) Until then I think it may be safer to just load everything in classloader and then "throw it away" at end of execution run. I believe that is one of the strategies we will be using for ant2. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*