ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Insert a file into another at given point (not necessary at the end)
Date Mon, 29 May 2006 15:54:35 GMT

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
  <replaceregexp file="${src}/"
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 --

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "David" <>
To: "Ant Apache User Group" <>
Sent: Monday, May 29, 2006 10:24 AM
Subject: Insert a file into another at given point (not necessary at the end)

> Dear members,
>  I know there is a task concat for inserting at the end of the file another file, but
what about to insert something in the middle of another file, I cant define such place for
example via regular expression, but I don't know if there is any task for doing that.
>  Thanks,
>  David
> ---------------------------------
> Sneak preview the  all-new It's not radically different. Just radically better.
View raw message