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 2005/08/12 20:37:19 UTC

DO NOT REPLY [Bug 36171] New: - -noclasspath crashes ant if no system classpath is set

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