Hello Beth,

Unfortunately, this is a known issue. See bug 2833055.
http://sourceforge.net/tracker/?func=detail&aid=2833055&group_id=31650&atid=402868

This bug has been assigned to me, so it will definitely be fixed. I cannot 
commit the time frame at this time, but for sure by 1.0 release. 

Regards.
Charles

--- On Mon, 4/19/10, Beth Hechanova <bhechan...@imsco-us.com> wrote:

From: Beth Hechanova <bhechan...@imsco-us.com>
Subject: [NAnt-users] Edit a file in place using replacetokens
To: "nant-users@lists.sourceforge.net" <nant-users@lists.sourceforge.net>
Received: Monday, April 19, 2010, 6:44 PM




 
 






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.
__________________________________________________________________
 
 
 


-----Inline Attachment Follows-----

------------------------------------------------------------------------------
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
-----Inline Attachment Follows-----

_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



      __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
------------------------------------------------------------------------------
Download Intel&#174; 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
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to