ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1126] New - bin\lcp.bat prepends Ant libraries to user's path
Date Tue, 27 Mar 2001 02:11:11 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1126

*** shadow/1126	Mon Mar 26 18:11:11 2001
--- shadow/1126.tmp.16312	Mon Mar 26 18:11:11 2001
***************
*** 0 ****
--- 1,38 ----
+ +============================================================================+
+ | bin\lcp.bat prepends Ant libraries to user's path                          |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1126                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version:                         |
+ |     Priority:                           Component: Build Process           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: jim_stearns@hp.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ On DOS (not Linux or cygwin), ant.bat calls lcp.bat to add the ant libraries, 
+ such as lib\parser.jar, to the CLASSPATH passed to ant.  The problem is that 
+ lcp.bat *prepends* (not appends) these libraries to the user's classpath.  
+ 
+ When building an application using a Level 2 DOM parser (for namespace 
+ support), the compiles fail because ant's parser.java library is found first, 
+ and it is a Level 1 DOM parser.
+ 
+ Fix: in lcp.bat, change
+ 
+     set LOCALCLASSPATH=%1;%LOCALCLASSPATH%
+ 
+ To
+ 
+     set LOCALCLASSPATH=%LOCALCLASSPATH%;%1
+ 
+ This problem is restricted to version 1.3; version 1.2 correctly appends rather 
+ than prepends.  I'm curious how the defect was introduced.
+ 
+ Thanks,
+ 
+ Jim Stearns

Mime
View raw message