Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 5630 invoked from network); 12 Dec 2000 00:24:28 -0000 Received: from valkyrie.is.com (206.145.189.35) by locus.apache.org with SMTP; 12 Dec 2000 00:24:28 -0000 Received: by valkyrie.is.com with Internet Mail Service (5.5.2650.21) id ; Mon, 11 Dec 2000 18:23:46 -0600 Message-ID: From: Tim Dawson To: "'ant-user@jakarta.apache.org'" Subject: RE: does and already have platform specific code? (RE: Why can't just simply delete the directory?) Date: Mon, 11 Dec 2000 18:23:41 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Platform-specific code does exist, in the task... but only for setting the working directory on pre-JDK 1.3. It's not terribly hard to envision a way to extrapolate that model to other areas, but without a lot of forethought, it could get pretty ugly... I'd agree that it's probably not worth it in this case, especially when you can use "exec" with "rmdir /s /q" if you really need the performance boost. :-) Tim > -----Original Message----- > From: Jay Glanville [mailto:dickon@nortelnetworks.com] > Sent: Monday, December 11, 2000 6:28 AM > To: Ant-User (text) > Subject: RE: does and already have platform specific code? (RE: Why > can't just simply delete the directory?) > > > No, not a major performance tweak. It's just that dir="${build.loc}"> can take over a minute with 2500 class > files to delete, > while it takes only 4 seconds doing a "rmdir /s /q > ${build.loc}" on NT. > It's certainly not enough to warrant the headaches of > introducing platform > code. The reason I was asking was if there existed platform > code already, > then adding a platform rmdir would be relatively minor. > Again, it's not > enough to warrant adding platform code. > > Jay > > -----Original Message----- > From: James Duncan Davidson [mailto:duncan@x180.net] > Sent: Sunday, December 10, 2000 5:40 PM > To: ant-user > Subject: Re: does and already have platform specific code? (RE: Why > can't just simply delete the directory?) > > > Are we really talking a performance tweak -- I've not noticed > a delete of a > rather large directory taking much time at all. If you are noticing > differently, then it would be interesting to figure out why. > > -- > James Duncan Davidson > duncan@x180.net > > !try; do() >