« Return to Thread: Replace string in file

Re: Replace string in file

by AparnaSDoshi :: Rate this Message:

Reply to Author | View in Thread

Use replaceregexp  task with replacing < by 'ampersand sign lt semicolon' and > by 'ampersand sign gt semicolon'

<replaceregexp  file="filename" match="<a/>" replace=" " flags="g" byline="true"/>

Raja Nagendra Kumar wrote:
Use replace task

              <replace file="@{lFileName}"
                             token="ANT_TOKEN_IMAGES_ROOT_DIR"
                             value="${IMAGES_ROOT}"/>

Regards,
Nagendra

 « Return to Thread: Replace string in file