[
http://issues.apache.org/jira/browse/XALANJ-2183?page=comments#action_12317892
]
Brian Minchau commented on XALANJ-2183:
---------------------------------------
Verified that patch XalanSqlExt-Samples.patch.txt is already committed to CVS.
-------------------------------------
runDerby.bat looks OK.
-------------------------------------
runDerby.sh
> set _JAR_DIR but never uses it.
> _ENDORSED_DIR is always set to ../../../build, but this directory will only
exist
for the source distribution after one does a build
This is propably irrelevant since the corresponding runDerby.bat does not
having anything to do with endorsed directories at all.
------------------------------------
runExtConnection.bat looks OK..
------------------------------------
runExtConnection.sh it sets SERIALIZER_JAR but doesn't
use the variable in the classpath.
------------------------------------
runXalan.bat looks OK.
------------------------------------
runXalan.sh has the same problem as runExtConnection.sh,
it sets SERIALIZER_JAR but doesn't use the variable in the classpath.
------------------------------------
> 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
> Assignee: John Gentilin
> Attachments: XalanJ-2183-SqlExtension-DefConPoolFix.patch, XalanSQL
> Ext-SampleDir.patch, XalanSQLSamples-DocUpdates.patch,
> XalanSqlExt-Samples.patch, runExtConnection.bat
>
> 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]