Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 1340 invoked from network); 15 Nov 2001 12:01:51 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Nov 2001 12:01:51 -0000 Received: (qmail 7985 invoked by uid 97); 15 Nov 2001 12:00:45 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 7911 invoked by uid 97); 15 Nov 2001 12:00:44 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 7810 invoked from network); 15 Nov 2001 12:00:42 -0000 content-class: urn:content-classes:message Subject: RE: Is there a way to search a directory structure? MIME-Version: 1.0 Date: Thu, 15 Nov 2001 12:03:46 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Is there a way to search a directory structure? Thread-Index: AcFtRGm2PLwPJycJRkak7pezZ8rRjQAiGpOg From: "Alan Pearlman Spencer" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Maybe you can help me with another way of addressing the need I have... I have a build script used by the whole team and different people want to have it behave slightly differently. The two options are: 1> It builds in place (classes live with java files etc...) Or 2> It builds to a separate output directory... I have a clean_all target that tries to decide which you are doing and: 1> selectively delete target files 2> blindly delete the whole directory... But, as people are getting up to speed with the process I am afraid that the source tree may be a subdirectory of the output directory in some cases (as a mistake really). So, I decided I would scan the complete output tree for build.xml (or something else that is not 'supposed' to be in the output dir) and if I find it I can assume method 2 is a bad idea. At the moment I can deal with if the src and output are the same, but not if source is a subdirectory of output. Basically I think it is quite likely that someone will set output to be the parent of the source not exactly the same as it... I may just end up sending out a warning about this to the team. Thanks, Alan. -----Original Message----- From: Diane Holt [mailto:holtdl@yahoo.com] Sent: 14 November 2001 19:38 To: Ant Users List Subject: RE: Is there a way to search a directory structure? --- Alan Pearlman Spencer wrote: > Thanks a million! > I'll play with the file attribute, don't know how I missed that! Well, as it stood, no matter how much you played with it, I don't think it was going to work the way you needed, or the way it seemed the doc was saying it should. I've put through a change that fixes it (hopefully anyway -- I tested the snot out of it, but I'm still queasy about my Java know-how :) Diane =3D=3D=3D=3D=3D (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: