I'm compiling .NET components and I currently use <exec> to do all of the work however I would like to convert the build file to use the <csc> task. I seem to have problems with the ' character. I've searched the archives and I'm not able to find a similar error. Below is the output:
version_info: [echo] --(FPI)--> Java version = 1.3 [echo] --(FPI)--> Apache Ant version 1.5.1 compiled on October 2 2002 [echo] --(FPI)--> Windows XP
build_websvc: [echo] -- FPI--> building FPWebService.dll [csc] compiling 14 files [csc] Executing 'csc' with arguments: [csc] '/nologo' [csc] '/debug-' [csc] '/incremental-' [csc] '/optimize+' [csc] '/target:library' [csc] '/warn:3' [csc] '/out:C:\swdev\build\distrib\SoftwareDevelopment\Products\WebService\FPW ebConfig\bin\FPWebConfig.dll' [csc] '/nostdlib-' [csc] '/reference:Accessibility.dll;cscompmgd.dll;CustomMarshalers.dll;Mscorcf g.dll;System.Configuration.Install.dll;System.Data.dll;System.Des gn.dll;System.DirectoryServices.dll;System.EnterpriseServices.dll;System .dll;System.Drawing.Design.dll;System.Drawing.dll;System.Management.dll; Syste .Messaging.dll;System.Runtime.Remoting.dll;System.Runtime.Serialization. Formatters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;System .Web. ll;System.Web.RegularExpressions.dll;System.Web.Services.dll;System.Wind ows.Forms.dll;System.XML.dll;' [csc] '/fullpaths' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfig\AssemblyInfo.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfig\Configuration.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfig\FPConfiguration.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\AssemblyInfo.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\CalcService.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\CalcServiceList.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\Default.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\Global.asax.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\LoggingService.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\MSMQServer.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\MSMQServerList.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\ReportManager.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\WebService.aspx.cs' [csc] 'C:\SoftwareDevelopment\dot_net\FPWebService\FPWebConfigurationSolution\ FPWebConfigEditor\WebServiceList.aspx.cs' [csc] [csc] The ' characters around the executable and arguments are [csc] not part of the command.