ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject Re: replaceregexp problem
Date Fri, 22 Jul 2005 18:48:22 GMT
Thanks Chad, that did the trick perfectly!

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

On Fri, July 22, 2005 2:43 pm, Chad Armstrong said:
> Hi Frank,
>   The * looks a little weird below in the "match" string, * means 0 or
> more of the preceding character, which I don't think is what you want.
> Try it with .* instead and see if that helps.
>
> Chad
>
> On 7/22/05, Frank W. Zammetti <fzlists@omnytex.com> wrote:
>> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message