Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 77101 invoked from network); 23 Aug 2007 13:42:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 13:42:07 -0000 Received: (qmail 17414 invoked by uid 500); 23 Aug 2007 13:42:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 17385 invoked by uid 500); 23 Aug 2007 13:42:00 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 17374 invoked by uid 99); 23 Aug 2007 13:42:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 06:42:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [149.8.64.10] (HELO mclmx.mail.saic.com) (149.8.64.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 13:41:59 +0000 Received: from 0015-its-ieg02.mail.saic.com ([149.8.64.21] [149.8.64.21]) by mclmx.mail.saic.com id BT-MMP-7044297 for user@ant.apache.org; Thu, 23 Aug 2007 09:41:20 -0400 Received: from 0015-ITS-EXBH01.us.saic.com ([10.43.229.18]) by 0015-its-ieg02.mail.saic.com (SMSSMTP 4.0.5.66) with SMTP id M2007082309412027732 for ; Thu, 23 Aug 2007 09:41:20 -0400 Received: from 0966-its-exmb01.us.saic.com ([10.42.192.222]) by 0015-ITS-EXBH01.us.saic.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 23 Aug 2007 09:41:20 -0400 X-MIMEOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: String replace. Date: Thu, 23 Aug 2007 09:41:19 -0400 Message-Id: In-Reply-To: <98c2b60d0708221834h2bb27080t8dc23c6b4e1cb791@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: String replace. Thread-Index: AcflJeIjl6Ff1cAyTa+fAGpG8Ic7fAAZOgWQ From: "Chon, Ae H" To: "Ant Users List" X-OriginalArrivalTime: 23 Aug 2007 13:41:20.0427 (UTC) FILETIME=[49C5E7B0:01C7E58B] X-Virus-Checked: Checked by ClamAV on apache.org Try, this...CDATA will look for that literal string and will not read it as special chars.=20 =20 =20 Ae Hwa Chon chona@saic.com (W) 703-824-5863 -----Original Message----- From: user-return-61891-AE.H.CHON=3Dsaic.com@ant.apache.org [mailto:user-return-61891-AE.H.CHON=3Dsaic.com@ant.apache.org] On Behalf Of Andrew Goktepe Sent: Wednesday, August 22, 2007 9:35 PM To: Ant Users List Subject: Re: String replace. Try escaping the & character xml-style with & instead of \& pattern=3D"&lt;" -Andrew On 8/22/07, Chun Ji wrote: > > > Hi, > > Does someone know how to replace a string such as "<" to be "<" in=20 > a html file by ANT. > The target that I have created in my build.xml is : > " > ... > > > " />=20 > .. > ", > > but I see such errors: > " > The value of attribute "replace" associated with an element type=20 > "replaceregex" must not contain the '<' character. > " > > > Thanks a lot, > > > Charlie > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org