ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject replaceregexp problem
Date Fri, 22 Jul 2005 18:36:22 GMT
Hi all... having some trouble getting a regex replace to work... I have a
JSP which contains the following line:

<!--Version--><span class="cssAboutVersion">Version 3.0<br>Build
3063<br>01/01/2005</span><!--EndVersion-->

I have a task in my build script like so:

<replaceregexp file="${toa_base_dir}/jsp/systemAbout.jsp"
match="&lt;!--Version--&gt;*&lt;!--EndVersion--&gt;"
replace="&lt;!--Version--&gt;&lt;span
class=&quot;cssAboutVersion&quot;&gt;Version
${project_version}&lt;br&gt;Build
${next_build_number}&lt;br&gt;${build.datetime}&lt;/span&gt;&lt;!--EndVersion--&gt;"
byline="true" />

But, nothing is getting replaced.  The file exists and is found, and all
the properties are properly defined previously, it just seems to not be
finding the matching text.  Any ideas?  Thanks!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message