I know the help says this:
Note: If you employ filters in your copy operation, you should limit the copy to text files. Binary files will be corrupted by the copy operation. But is stripping the BOM really what that means? Cheers, Karl P > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Karl Palsson > Sent: Wednesday, November 15, 2006 1:06 PM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] Bug with filterchains and BOM? > > > Hi, > > I'm using copy and filterchains to generate stub project > layouts for visual studio. > > VisualStudio 2005, solution files start with the BOM, > 0xefbbbf, and if the BOM's not there, visual studio ignores > the file (unhelpful!) > > My task looks like this... > > <copy file="${templatedir}\TemplateRawInput.sln" > tofile="vanilla-${project.basename}.sln" > inputencoding="utf-8" > > > <filterchain> > <replacetokens> > <token key="COREGUID" > value="${Core.GUID}"/> > <token key="TESTSGUID" > value="${Tests.GUID}"/> > </replacetokens> > </filterchain> > </copy> > > > If I don't use filterchains, the BOM is always preserved, and > visual studio will open the file (well, try to, the > @COREGUID@ values tend to make it very upset) but as soon as > I add the filterchains, the BOM is stripped from the output. > This is regardless of whether I specify inputencoding, > outputencoding, neither or both. > > I'm using NAnt 0.85 (Build 0.85.2344.0; rc4; 02-Jun-06) > > Cheers, > Karl P > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users