Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 90609 invoked from network); 27 Nov 2001 00:00:31 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 Nov 2001 00:00:31 -0000 Received: (qmail 28769 invoked by uid 97); 27 Nov 2001 00:00:33 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 28753 invoked by uid 97); 27 Nov 2001 00:00:33 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 28742 invoked from network); 27 Nov 2001 00:00:32 -0000 Message-Id: <5.0.2.1.0.20011126154517.023d4d10@mail.swcp.com> X-Sender: ecooper@mail.swcp.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Mon, 26 Nov 2001 17:08:54 -0700 To: ant-dev@jakarta.apache.org From: Elizabeth Cooper Subject: Ant Suggestion: FileSet by matching a String in the file Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Suggestion for implementation: a way to do a FileSet or file list (to a file) from a positive match of a search for a String in a FileSet (or single file or src directory) This is very much like a "grep" task with a designated output file for the matching file list (which can later be used as an includesfile or an excludesfile) and a String to match, and how many lines to search in the file (or search until another String is found, for example if you only want to search in the "header" area of source code, search until "public class" is found). This can be done now with something like: BUT there is a problem in that non-matches return a result of "1" which is displayed by ant (possible error), producing a really long list (in my case) of: [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 [apply] Result: 1 ..... etc, etc, etc. This is quite a nuisance when you want to monitor what is going on with ant (logging, etc.). P.S. I am doing this under Windows and there is no "quiet, -q" mode for grep, and I actually do not think that would work anyway. -Liz ErgoTech Systems, Inc. -- To unsubscribe, e-mail: For additional commands, e-mail: