DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29252>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29252

Parameters with spaces need to be quoted in temporary command files

           Summary: Parameters with spaces need to be quoted in temporary
                    command files
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a temporary command file is created (at least), parameters with spaces in 
them cause failures.  Since Microsoft loves to put spaces in the pathnames of 
their system directories, this makes 1.6.1 CSC unusable for me.

Given the following call to the csc task:

        <csc debug="true" destFile="${outdir}/${Framework.dll}"
             docFile="genxml/Framework.xml"
             references="${wse.dll}"
             srcDir="src"
             targetType="library"
        />

Where wse.dll translates to 

C:/Program Files/Microsoft WSE/v1.0.2312/Microsoft.Web.Services.dll (this is 
where Microsoft's installer puts it) the task fails with 

      [csc] compiling 207 files
      [csc] error CS2001: Source file 'Files/Microsoft' could not be found
      [csc] error CS2001: Source 
file 'WSE/v1.0.2312/Microsoft.Web.Services.dll' could not be found
      [csc] error CS0006: Metadata file 'C:/Program' could not be found

Quoting the line in the produced temporary file to read

"/reference:C:/Program Files/Microsoft WSE/v1.0.2312/..."

fixes the problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to