Classpath and database problems for new Derby database samples
--------------------------------------------------------------
Key: XALANJ-2183
URL: http://issues.apache.org/jira/browse/XALANJ-2183
Project: XalanJ2
Type: Bug
Reporter: Brian Minchau
Batch and shell scripts don't set classpath right.
In the case of the binary distribution the jars are in the root dirctory:
serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
Of particular note these files found in the root when you get the binary
distribution you get these jars in the root.
When you get the source distribution, these jars are already in the lib/
directory
lib/xercesImpl.jar
lib/xml-apis.jar
After doing a build from the source distribution, the following are created:
build/xalan.jar
build/serializer.jar
So the locations of these 4 jars depends on the distribution.
=================================================
The problem with the new java/samples/extensions/sql/runXalan.bat (for example)
is that it has lines like this:
if "%_PARSER_JAR%" == "" set _PARSER_JAR=..\..\..\lib\xercesImpl.jar
that assume the source distribution. Such a line should be replace with code
like this:
if "%_PARSER_JAR%" == "" if exist "..\..\..\lib\xercesImpl.jar" set
_PARSER_JAR=..\..\..\lib\xercesImpl.jar
if "%_PARSER_JAR%" == "" if exist "..\..\..\xercesImpl.jar" set
_PARSER_JAR=..\..\..\xercesImpl.jar
A similar issue for the endored directory
if "%_XALAN_JAR_DIR%" == "" set _XALAN_JAR_DIR=..\..\..\build
which should be:
if "%_XALAN_JAR_DIR%" == "" if exist "=..\..\..\build\xalan.jar" set
_XALAN_JAR_DIR=..\..\..\build
if "%_XALAN_JAR_DIR%" == "" if exist "=..\..\.\xalan.jar" set
_XALAN_JAR_DIR=..\..\
and other locations in runXalan.bat.
Similar issues for runXalan.sh, runDerby.bat, runDerby.sh
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]