Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 43741 invoked from network); 12 Dec 2007 06:08:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2007 06:08:44 -0000 Received: (qmail 97983 invoked by uid 500); 12 Dec 2007 06:08:33 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 97951 invoked by uid 500); 12 Dec 2007 06:08:32 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 97937 invoked by uid 99); 12 Dec 2007 06:08:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2007 22:08:32 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 06:08:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 388D21A9832; Tue, 11 Dec 2007 22:08:23 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r603477 - /ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html Date: Wed, 12 Dec 2007 06:08:22 -0000 To: notifications@ant.apache.org From: jhm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071212060823.388D21A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jhm Date: Tue Dec 11 22:08:22 2007 New Revision: 603477 URL: http://svn.apache.org/viewvc?rev=603477&view=rev Log: Fix error in the examples. Modified: ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html Modified: ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html?rev=603477&r1=603476&r2=603477&view=diff ============================================================================== --- ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html (original) +++ ant/core/trunk/docs/manual/OptionalTasks/replaceregexp.html Tue Dec 11 22:08:22 2007 @@ -89,10 +89,12 @@

Examples

-
  <replaceregexp file="${src}/build.properties"
-                         match="OldProperty=(.*)"
-                         replace="NewProperty=\1"
-                         byline="true"/>
+
+<replaceregexp file="${src}/build.properties"
+               match="OldProperty=(.*)"
+               replace="NewProperty=\1"
+               byline="true"
+/>
 

replaces occurrences of the property name "OldProperty" with "NewProperty" in a properties file, preserving the existing @@ -122,9 +124,9 @@ <regexp pattern="OldProperty=(.*)"/> <substitution expression="NewProperty=\1"/> <fileset dir="."> - <includes="*.properties"/> + <include name="*.properties"/> </fileset> - </replaceregexp> +</replaceregexp>

replaces occurrences of the property name "OldProperty" with "NewProperty" in a properties file, preserving the existing