What 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 support
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
-



-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 05, 2003 7:38 PM
To: Ian MacLean
Cc: Mitch Denny; [EMAIL PROTECTED]
Subject: Re: [nant-dev] [Fwd: Ready to tackle next release]

I think we should have a more generic solution for this, like
Ant has with its support for FilterChains ...

Scott has put this on his to-do list (and I updated the NAnt
to-do list in cvs with this information), but he's very busy
so I'm not sure when this will be available ...

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 11:06 AM
Subject: Re: [nant-dev] [Fwd: Ready to tackle next release]




Same as the Ant replace task. Replace tokens in a text file


( or fileset


of text files )

Ian
Gert Driesen wrote:



Mitch,

Can you freshen up my memory again, and tell me what this task is


supposed


to do ?

Thanks,

Gert

----- Original Message ----- From: "Mitch Denny" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 03, 2003 7:05 AM
Subject: RE: [nant-dev] [Fwd: Ready to tackle next release]



It would be great to see NUnit 2.1 plugged in. I'd also


like to see 1.1


as the default. Ian - do you think it would be possible to get the
ReplaceTask into the core if I can make it more robust?

----------------------------------------
- Mitch Denny
- [EMAIL PROTECTED]
- http://www.monash.net
- +61 (414) 610141
-





-----Original Message-----
From: Ian MacLean [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: [nant-dev] [Fwd: Ready to tackle next release]







-------------------------------------------------------
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




------------------------------------------------------- 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







------------------------------------------------------- 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








-------------------------------------------------------
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




-------------------------------------------------------
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







------------------------------------------------------- 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

Reply via email to