Steve Baker wrote:
So I had never seen the replacestring filter before, that is cool...
Any one know what happens if I use the copy task like this <copy
file="changeme.txt" tofile="changeme.txt" /> cause I really don't want
another file laying around :(
You'll risk messing up things that depend upon file modification times -
which includes source control systems and (I believe) NAnt's copy task.
That doesn't mean it won't work, but you may discover problems in the
future that will be difficult to diagnose.
Disk space is cheap. The general rule is that files that represent
different things should have different file names. In this case, the
two files represent two different things - one before the replacement,
one after. A common approach to this is to have the first named
"changeme.txt.in" and the second "changeme.txt."
Gary
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users