Looking for the equivalent of Ant Replace task in Nant
A:
There is no direct equivalent in Nant.
This link http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/ has a couple of options.
ktaylorjohn
2010-05-07 05:13:43
The equivalent is using filterchain and filters with the copy or move tasks.
Peter Lillevold
2010-05-07 07:24:23
+2
A:
As far as I can tell, the filter features in NAnt is exactly what you're looking for. Supported by the <copy>
and <move>
tasks, you define token replacement expressions that will transform file content during file copy/move operations.
Peter Lillevold
2010-05-07 07:21:11