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 2001/11/02 06:00:53 UTC
DO NOT REPLY [Bug 4583] New: -
ant.bat does not put .zip files into classpath
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=4583>.
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=4583
ant.bat does not put .zip files into classpath
Summary: ant.bat does not put .zip files into classpath
Product: Ant
Version: 1.4.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Minor
Priority: Other
Component: Wrapper scripts
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: psurette@espial.com
ant.bat adds all jars in the lib/ directory into
the system classpath, but it does not add zip
files.
As far as I know, it is still legal, if deprecated
to distribute java libraries in zip files, and
oracle does exactly this (drivers are classes111.zip
or classes12.zip).
Here's the patch for ant.bat (the ant shell
script will need something similar):
*** ant.bat Mon Oct 1 19:41:56 2001
--- myant.bat Fri Nov 2 00:06:14 2001
***************
*** 70,75 ****
--- 70,76 ----
set _JAVACMD=%JAVACMD%
set LOCALCLASSPATH=%CLASSPATH%
for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i
+ for %%i in ("%ANT_HOME%\lib\*.zip") do call "%ANT_HOME%\bin\lcp.bat" %%i
if "%JAVA_HOME%" == "" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>