Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 31650 invoked from network); 8 Jun 2002 14:27:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Jun 2002 14:27:49 -0000 Received: (qmail 6621 invoked by uid 97); 8 Jun 2002 14:27:48 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 6559 invoked by uid 97); 8 Jun 2002 14:27:47 -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 6537 invoked by uid 98); 8 Jun 2002 14:27:47 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Sent: 8 Jun 2002 14:27:38 GMT From: "Keith Wannamaker" To: Subject: [PATCH] 1.5B / 1.6A LineContains broken Date: Sat, 8 Jun 2002 10:29:50 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N LineContains was broken in rev 1.4.2.1 in 1.5B and in 1.6A when a 'fix' was forward-ported in rev 1.5 The problem is that LineContains will not match adjacent lines. I would suggest the following patch to both the 1.5 branch and head. http://apache.org/~keith/line.txt As an example, if your file contained: foo1 foo2 foo3 foo4 foo5 , a linecontains of "foo" would only return foo1 foo3 foo5 with the current code (both 1.5 and 1.6) Thanks, Keith -- To unsubscribe, e-mail: For additional commands, e-mail: