ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David <>
Subject Re: Insert a file into another at given point (not necessary at the end)
Date Mon, 29 May 2006 17:34:48 GMT
Dear Martin,
  I don't know if I can do it with ReplaceRegExp, I know this target, because I use it for

  situation. I need to find a correct way to match the middle of the file and to delimit each
  Thanks for your input,
  >Have you looked at ReplaceRegExp Task from is the doc
>You would be able to replace match with replace for all instances where match \
>condition is met  <replaceregexp file="${src}/"
>                         match="OldProperty=(.*)"
>                         replace="NewProperty=\1"
>                         byline="true"/>
>replaces occurrences of the property name "OldProperty" with "NewProperty" in a \
>properties file, preserving the existing value, in the file ${src}/

>Is this what you're looking for ?

>Martin --

Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message