ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Nord <te...@teilo.net>
Subject Re: howto stripp html comments
Date Tue, 27 May 2003 01:00:58 GMT
J.Pietschmann wrote, On 27/05/2003 01:09:

> James Nord wrote:
>
>> file:D:/src/build.xml:100: The value of attribute "pattern" must not 
>> contain the '<' character.
>
> ...
>
>> Could someone tell me how to include the > character?  I have tried 
>> \> and \\> but with the same results.
>
>
> Try &gt; (including the semicolon).
> See
>   http://www.w3.org/TR/REC-xml#syntax

That got it

  <target name="jsp" depends="init"
          description="copy jsp files and strip dreamweaver template info">
        <mkdir dir="${build.dir}/jsp"/>
    <copy todir="${build.dir}/jsp">
      <fileset dir="${src.dir}/jsp"/>
    </copy>
    <replaceregexp byline="true" flags="g">
      <regexp pattern="&lt;\!--[^(--&gt;)]*--&gt;"/>
      <substitution expression=""/>
      <fileset dir="${build.dir}/jsp"/>
   </replaceregexp>
  </target>


Thanks

    /James



Mime
View raw message