From: Griffin C. <gri...@ma...> - 2007-05-08 20:36:29
|
Hello all, I'm trying to create an output file from my nant build file. I would like it to include two things: 1 ) The contents of an existing file. 2 ) The output of an <echo> task. This looks like the below: <concat destfile="${file.OutputFile}" append="true"> <fileset> <include name="${file.InputFile}"/> </fileset> </concat> <echo append="true" file="${file.OutputFile}"> ${string::replace(string::replace(sql.InsertPatchIDRecord, '@PATCHID@', patchID), '@FILENAME@',file.filepath)} </echo> However, the resulting file contains the existing file, but then it contains several ASCII characters. If I don't do the <concat> or if i remove the append attribute of the <echo> task, everything works fine. I'm thinking that the two tasks use different encodings, but I can't find any properties to control that. Anyone else ever see this? Griffin Caprio 312.371.3869 http://blog.1530technologies.com |