ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29252] New: - Parameters with spaces need to be quoted in temporary command files
Date Thu, 27 May 2004 18:27:01 GMT
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: dev@ant.apache.org
        ReportedBy: mschilling@amberpoint.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message