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:[EMAIL PROTECTED]] Sent: 14 November 2001 19:38 To: Ant Users List Subject: RE: Is there a way to search a directory structure? --- Alan Pearlman Spencer <[EMAIL PROTECTED]> 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 ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>