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 10917] New: - Ant.bat does not work with long classpath
Date Wed, 17 Jul 2002 19:10:09 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=10917>.
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=10917

Ant.bat does not work with long classpath

           Summary: Ant.bat does not work with long classpath
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: awhitford@fftw.com


This is a little weird, but if you have a long classpath, the ant.bat wrapper 
will not properly run org.apache.tools.ant.Main.  My classpath is as follows:

ClassPath=c:\Classes\activation.jar;c:\Classes\ejb.jar;c:\Classes\hpjdbc.jar;c:\
Classes\jaxp.jar;c:\Classes\jcifs-
0.6.5.jar;c:\Classes\jconn2.jar;c:\Classes\jdbc2_0-
stdext.jar;c:\Classes\mail.jar;c:\Classes\parser.jar;c:\Classes\regex4j.jar;c:\C
lasses\servlet.jar;c:\Classes\soap.jar;c:\Classes\tspaces_client.jar;.;C:\

Running ant.bat will report me the java usage.  Somehow the long classpath is 
making the java class fall off, so java reports an error because it is missing 
a class.

The workaround is to modify ant.bat and remove the double quotes around 
classpath.  Before:
  "%_JAVACMD%" -classpath "%LOCALCLASSPATH%" ...
After:
  "%_JAVACMD%" -classpath %LOCALCLASSPATH% ...

Oddly enough, this works.  Note that I do not have any spaces in my classpath, 
which is probably why you have the double quotes there.  If the classpath is 
much simpler/smaller, the problem disappears.

There must be a way to modify ant.bat so that it accomodates a long classpath.

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