From dev-return-84406-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Aug 21 14:08:41 2009 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 90270 invoked from network); 21 Aug 2009 14:08:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Aug 2009 14:08:41 -0000 Received: (qmail 47361 invoked by uid 500); 21 Aug 2009 14:09:02 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 47233 invoked by uid 500); 21 Aug 2009 14:09:02 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 47047 invoked by uid 99); 21 Aug 2009 14:09:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 14:09:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of blaine.simpson@admc.com designates 65.212.180.110 as permitted sender) Received: from [65.212.180.110] (HELO mail.admc.com) (65.212.180.110) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 14:08:47 +0000 Received: from c-98-233-189-113.hsd1.wv.comcast.net ([98.233.189.113] helo=[192.168.101.240]) by mail.admc.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MeUn4-00073E-GC for dev@ant.apache.org; Fri, 21 Aug 2009 10:08:26 -0400 Message-ID: <4A8EAA58.8@admc.com> Date: Fri, 21 Aug 2009 10:08:24 -0400 From: Blaine Simpson User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: Ant Developers List Subject: Re: Replace target's problem References: <25075218.post@talk.nabble.com> In-Reply-To: <25075218.post@talk.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ACL-Warn: Skipping Clamav and Spamassassin scans X-Virus-Checked: Checked by ClamAV on apache.org Khushwinder wrote: > Hello All, > > ... > > > > casesensitive="true"> > > > .js > > > > > But it is also replacing the jsp file with build number because the > replacetoken value is like .js. > I want that it should only replace .js files not the .jsp. > Can anyone help me in this case. > > Thanks and rgds > I use the optional "replaceregexp" tag for this (instead of "replace"). If you aren't handy with regular expressions and don't have a reference at hand, you can use http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html . I haven't used this in a while, so I checked build files where I've used it, and I see that I typed the tag as "replaceregex" whereas the manual calls it "replaceregexp". I guess the proper name is "replaceregexp" but that it recognizes the alternative spelling "replaceregex". --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org