Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Version 1.0.4 (jdk1.3 port)
-
None
-
None
-
win2k
Description
Scripts (scomp,xpretty,etc) incorrectly set the CLASSPATH. See the diff below:
@@ -12,7 +12,7 @@
if EXIST %XMLBEANS_HOME%\build\ar\xbean.jar. (
set cp=%XMLBEANS_HOME%\build\ar\xbean.jar;%XMLBEANS_HOME%\build\lib\xml-apis.jar;%XMLBEANS_HOME%\build\lib\xercesImpl.jar.
) else if EXIST %XMLBEANS_HOME%\lib\xbean.jar. (
- set cp=%XMLBEANS_HOME%\build\lib\xbean.jar;%XMLBEANS_HOME%\lib\xml-apis.jar;%XMLBEANS_HOME%\lib\xercesImpl.jar.
+ set cp=%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xml-apis.jar;%XMLBEANS_HOME%\lib\xercesImpl.jar.
)
In short, the classpath SHOULD be set to %XMLBEANS_HOME%\lib\xbean.jar NOT %XMLBEANS_HOME%\build\lib\xbean.jar
This is a very irritating bug given that the directions on http://xmlbeans.apache.org/documentation/conInstallGuide.html instruct you to add xmlbeans.jar to the classpath (shouldn't you really add the entire lib directory to the classpath), as if that makes any difference. The fact is the scripts completely override the classpath with their own settings.