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 11920] New: - Command line parameter problems
Date Thu, 22 Aug 2002 09:43:00 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message