Edit a file in place using replacetokens
Beth Hechanova <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a token, @PARTNUMBER@ defined in a file, and I would like to replace it during the build process. However I'd prefer to edit the file in place rather than copy or move to a different file. I've tried both copy and move with the overwrite=true option, but both ignore the self-copy or self-move.
This is what I currently have in my target:
<move tofile="..\install\${installer.base.name}.aip" file="..\install\${installer.base.name}.aip" overwrite="true" >
<filterchain>
<replacetokens>
<token key="PARTNUMBER" value="${partNumber}" />
</replacetokens>
</filterchain>
</move>
If I change the name of the tofile attribute to something other than the source filename, then it works fine. However I would rather just edit the file in place. Is this possible?
I am using NAnt 0.86 (Build 0.86.3412.0; nightly; 5/5/2009)
Thanks,
Beth
__________________________________________________________________
This email and any files transmitted with it are confidential & proprietary to Systems and
Software Enterprises, Inc. (dba IMS). This information is intended solely for the use of
the individual or entity to which it is addressed. Access or transmittal of the information
contained in this e-mail, in full or in part, to any other organization or persons is not
authorized.
__________________________________________________________________
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users