Re: Find and Replace String.

Bob Archer <[email protected]> Fri, 30 Sep 2011 09:33:44 -0400
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
Is the file in question something that you control, or it a template file or something?

If so, you can use a filterchain during a copy or move to replace tokens with some value.

BOb


From: Sastry, Dilip IN PUN SISL [mailto:[email protected]]
Sent: Friday, September 30, 2011 6:51 AM
To: [email protected]
Subject: [NAnt-users] Find and Replace String.

Hi,

Can you send me Nant Script for the following task.

Open the bat file.
Read the file
Collect the File contents to an array
Match a particular string

Open the same File again
And Replace the above captured string with a new string.


Thnx,
Dilip Sastry.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users