Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 46898 invoked from network); 26 Nov 2001 04:44:24 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 26 Nov 2001 04:44:24 -0000 Received: (qmail 7052 invoked by uid 97); 26 Nov 2001 04:44:27 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 7008 invoked by uid 97); 26 Nov 2001 04:44:26 -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 6997 invoked from network); 26 Nov 2001 04:44:26 -0000 Message-Id: <5.0.2.1.0.20011125210057.023dcb20@mail.swcp.com> X-Sender: ecooper@mail.swcp.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sun, 25 Nov 2001 21:52:49 -0700 To: ant-user@jakarta.apache.org From: Elizabeth Cooper Subject: A little problem using apply with grep 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 I can successfully use apply with grep (under Windows) to create a list of files (later to be used as an includesfile for javac), but grep returns an "error" code (1) for files that do not match the criteria that I am looking for (in this case, all files that have "Base-Package" in their content). This is not displayed if I run grep on a command line, but during the build process this is displayed by ant for each file that does not match, resulting in a long list 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 ..... This is not a real problem, but more of a nuisance, since the output (logged to a file or observed on the command shell window ) of the ant process is diluted by these useless messages, which in my case may run into the hundreds. I would think it would be useful to have a way to "turn off" this result output unless you have (for example) explicitly told ant to stop building on an error. Maybe there should be an option to ignore certain (specified) non-zero results from external executions. Does anyone have some advice to help me (maybe I have missed something)? I have tried options to grep (-s does not correct the situation, and -q is not available for Windows). Note: What would be really useful here is a FileSet defined by a token string in a file (much like the token used for Replace) to define a set of includesfile used for a build, and/or a set of excludesfile. This is really what I am trying to accomplish by using grep to get a list of files for the compilation. Elizabeth Cooper ErgoTech Systems, Inc. -- To unsubscribe, e-mail: For additional commands, e-mail: