You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/08/22 11:43:00 UTC

DO NOT REPLY [Bug 11920] New: - Command line parameter problems

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11920

Command line parameter problems

           Summary: Command line parameter problems
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: Andrew.Premdas@teleca.com


When processing command line parameters (using <arg />) Ant will put quotes 
around the parameter if it has a space in it. This default behaviour makes it 
impossible to construct complex parameters. For example I want to use my build 
script to start Tomcat and need the following parameter.

-Duser.dir="C:\Java\Apache Tomcat 4.0"

With Ant I can only produce

"-Duser.dir="C:\Java\Apache Tomcat 4.0""

The addition of a noQuotes property for arg could solve this e.g.

<arg value=-Duser.dir=&quot;C:\Java\Apache Tomcat 4.0&quot; noQuotes="true" />

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>