ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Woodchuck <>
Subject <replaceregexp> to wipe out everything in a file
Date Thu, 17 Jun 2004 15:40:55 GMT
is there a way to wipe out an entire file?
i just want everything to be blank.

i used the following:

<replaceregexp byline="true">
  <regexp pattern="(.*)"/>
  <substitution expression=""/>

now i have a blank empty file, but there are still
many lines (carriage returns) in that file.

i want to eliminate *everything* so that the only
thing in the file is EOF character, no line returns,
no nothing at all.

does anyone know how to do this?

i tried setting byline=false but it didn't work

Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message