I don’t see any type of functionality in nant or nantcontrib to find and replace a string value in a file.

 

There is xmlpoke for xml files. How are people doing the same type of thing for non xml files?

 

I wrote a task for this myself a while back, but sometimes clients prefer to use only publicly supported tasks.

 

It went something like this:

 

<regex-replace file=”filepath” find=”regex _expression_” replace=”replace value” casesensitive=”true” />

 

Am I missing something that exists in nant or contrib itself? Why wouldn’t something like this be included?

 

Thanks,

 

steve

 

 

Reply via email to