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 36171] New: - -noclasspath crashes ant if no system classpath is set
Date Fri, 12 Aug 2005 18:37:19 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=36171>.
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=36171

           Summary: -noclasspath crashes ant if no system classpath is set
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: BBurgess@tiaa-cref.org


On a Windows machine without a 'CLASSPATH' environment variable defined, running
"ant -noclasspath" or having "-noclasspath" set anywhere in 'ANT_ARGS' causes
ant to fail with "Unknown argument: -noclasspath" followed by the help message.

This is due to a bug in Launcher.java as well as a couple bugs in the ant.bat file.

I am attaching a patch to fix Launcher.java (which will fix ant.bat's problems
as well) and also, I suggest reverting ant.bat back to revision 1.38 before
these bugs where introduced in it.

The rollback of ant.bat is because the "-noclasspath" argument is handled by
Launcher.java and therefore does not need to be/should not be handled within
ant.bat (where added complexity is unecessary and causes other bugs.  Plus
ant.bat should mimic the ant shell script which lets Launcher handle the
"-noclasspath" argument).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message