Ian
http://ant.apache.org/manual/CoreTasks/replace.html
Gert Driesen wrote:
to be honest, I'm not sure about that one ... If necessary we could ofcourse create a task for that, but I was just saying we don't necessary need one ... didn't really give it much thought yet ...
Gert
----- Original Message ----- From: "Ian MacLean" <[EMAIL PROTECTED]>
To: "Gert Driesen" <[EMAIL PROTECTED]>
Cc: "Mitch Denny" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, October 05, 2003 1:53 PM
Subject: Re: [nant-dev] [Fwd: Ready to tackle next release]
supportWhat if you want to replace strings in a file in place ? - ie without copying/moving the file
Ian Gert Driesen wrote:
something like that yes :-)
but instead of having a separate task for that purpose, filterchain
would be added to existing tasks (like copy, zip, ...)
Gert
----- Original Message ----- From: "Mitch Denny" <[EMAIL PROTECTED]>
To: "Gert Driesen" <[EMAIL PROTECTED]>; "Ian MacLean"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, October 05, 2003 12:15 PM
Subject: RE: [nant-dev] [Fwd: Ready to tackle next release]
So in implementation it would work like this:
[FilterChain("filterchain")] public FilterChain FilterChain { ... }
Then in the execute task:
StreamReader reader = new StreamReader(...); StreamWriter writer = new StreamWriter(...); this.FilterChain.Filter(reader, writer);
Or something like that.
---------------------------------------- - Mitch Denny - [EMAIL PROTECTED] - http://www.monash.net - +61 (414) 610141 -
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers