Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 17323 invoked from network); 28 Jan 2000 17:57:22 -0000 Received: from tms50.themoneystore.com (HELO relay.themoneystore.com) (206.99.69.50) by 63.211.145.10 with SMTP; 28 Jan 2000 17:57:22 -0000 Received: from smtp1.themoneystore.com (uxas23.themoneystore.com [10.12.48.250]) by relay.themoneystore.com (8.8.7/8.8.5) with SMTP id JAA05960; Fri, 28 Jan 2000 09:55:04 -0800 (PST) Received: by smtp1.themoneystore.com(Lotus SMTP MTA v4.6.4 (830.2 3-23-1999)) id 88256874.00628E9F ; Fri, 28 Jan 2000 09:56:30 -0800 X-Lotus-FromDomain: TMS From: Frank_Starsinic@themoneystore.com To: ant-dev@jakarta.apache.org cc: "'ant-dev@jakarta.apache.org'" Message-ID: <88256874.00628C26.00@smtp1.themoneystore.com> Date: Fri, 28 Jan 2000 09:54:50 -0800 Subject: RE: Any objections against advanced directory scanning? Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline does this proposal solve the problem of which packages to compile or just which files to compile? i thought that Arnout's solution solved the "which packages" problem. frank "Twiggs, Glenn" on 01/28/2000 09:03:47 AM Please respond to ant-dev@jakarta.apache.org To: "'ant-dev@jakarta.apache.org'" cc: (bcc: Frank Starsinic/TMS) Subject: RE: Any objections against advanced directory scanning? Costin, Here is Arnout's directory scanning proposal: -- Hi, I finished the implementation for the directory scanning stuff. The following tasks are updated: -copydir -jar -javac -zip These tasks got two new attributes: includes & excludes. These attributes are a comma separated list of patterns. When no include pattern is supplied, all files are matched. When no exclude pattern is supplied, no exclusions will be made. See the proposal or source code for how the patterns look like. I tried to maintain (temporarily) backwards compatibility. So the items and ignore attributes should work as before. One important thing to notice, the DesirableFilter is not used, because these implicit exclusions could better be made explicit. If you want to emulate the filter, add the following patterns to the exclude list. (Tip: Store these in a property, and use that property in all your exclude lists): "**/*~" "**/#*#" "**/%*%" "**/CVS/**" "**/.cvsignore" If you want to try, or want to check it in, the complete zip of source code and ant.jar can be found at http://home.wxs.nl/~ajkuiper/myant.zip. If you want to have the diff -u's: http://home.wxs.nl/~ajkuiper/diff20000124. And if you want to have the DirectoryScanner class: http://home.wxs.nl/~ajkuiper/DirectoryScanner.java. When it is checked in, I'll update the manual accordingly, and write some info on how to use the patterns... Cheers, Arnout Kuiper -----Original Message----- From: costin@eng.sun.com [mailto:costin@eng.sun.com] > Does somebody have any objections against the advanced directory > scanning for certain tasks (copydir, javac, jar, zip and the new > delete), as proposed earlier? Can you repeat the proposal, I can't find the mail...