ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson" <>
Subject Substituting in CRLF in ReplaceRegExp
Date Wed, 02 Apr 2003 07:24:20 GMT
I'm having trouble insrting CRLF via ReplaceRegExp.
It just seems to entirely ignore the "\n" in the substituion expression.
I've tried prefixing with multiple back slashes but to no avail.
Using Ant 1.5, JDK 1.4.1 and the ORO mapper.

<replaceregexp flags="s">
   <regexp pattern="somepatternThatMatches"/>
   <substitution expression="foo \n bar"/>
   <fileset dir="${test.dir}">
      <include name="**/*.java"/>

Any ideas?

William Ferguson

View raw message