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 5731] New: - quoted "_JAVACMD" in ant.bat doesn't support args in JAVACMD environment var
Date Tue, 08 Jan 2002 01:15:12 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=5731>.
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=5731

quoted "_JAVACMD" in ant.bat doesn't support args in JAVACMD environment var

           Summary: quoted "_JAVACMD" in ant.bat doesn't support args in
                    JAVACMD environment var
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: sean@openmake.com


Easy to see and reproduce.  At the windows command prompt,

> set JAVACMD=java -Xmx128m
> ant

returns

'"java -Xmx128m"' is not recognized as an internal or external command, etc.

My expectectation is that if I have a space in my path, it is up to me to quote 
the path element or use a short name inside JAVACMD just as if I were entering 
the command at the prompt myself (which is what ant is doing).

Maybe it should stay quoted, if more people use paths with spaces and don't use 
args it will prevent ant.bat from crashing with a weird error.

Windows 2000 Professional, sp2, cmd.exe shell

--
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