From 8d2eeb62e6988408eff463d91711b88757615922 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Wed, 26 Jun 2002 12:35:50 +0000 Subject: [PATCH] Use apache resolver classes, not sun resolver classes --- cvstools/saxon | 13 ++++++------- cvstools/xjparse | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cvstools/saxon b/cvstools/saxon index 28f2ba1e6..94955e3b6 100755 --- a/cvstools/saxon +++ b/cvstools/saxon @@ -164,7 +164,7 @@ fi ## optionally replace the URI resolver with the Sun ## resolver classes, not yet available to the public? ## -for path in "/projects/sun/resolver/.classes" ; do +for path in "/projects/apache/xml-commons/java/build/classes" ; do if [ -f "$path" -o -d "$path" ]; then SUN="$path" break @@ -174,13 +174,13 @@ done if [ -f "$SUN" -o -d "$SUN" ]; then # use the sun resolver if [ ! "$XARG" ]; then - XARG="-x com.sun.resolver.tools.ResolvingXMLReader" + XARG="-x org.apache.xml.resolver.tools.ResolvingXMLReader" fi if [ ! "$YARG" ]; then - YARG="-y com.sun.resolver.tools.ResolvingXMLReader" + YARG="-y org.apache.xml.resolver.tools.ResolvingXMLReader" fi if [ ! "$RARG" ]; then - RARG="-r com.sun.resolver.tools.CatalogResolver" + RARG="-r org.apache.xml.resolver.tools.CatalogResolver" fi fi @@ -217,11 +217,10 @@ if [ ! "$JAXP" ]; then done fi if [ ! "$JAXP" ]; then - echo "warning: cannot locate JAXP (jaxp.jar), using /projects/sun/resolver/.classes" 1>&2 - JAXP="/projects/sun/resolver/.classes" + echo "warning: cannot locate JAXP (jaxp.jar)" 1>&2 fi -RESOLVER="${RESOLVER:-/projects/sun/resolver/.classes}:" +RESOLVER="${RESOLVER:-/projects/apache/xml-commons/java/build/classes}:" CLASSPATH=$SAXON:$NDWEXT:$JAXP:$RESOLVER$XERCES:$CLASSPATH diff --git a/cvstools/xjparse b/cvstools/xjparse index 5c4bdcea8..f89dd825f 100755 --- a/cvstools/xjparse +++ b/cvstools/xjparse @@ -4,8 +4,8 @@ # # Usage: xjparse [opts] src.xml -JAXP="${JAXP:-/projects/sun/resolver/.classes}:" -RESOLVER="${RESOLVER:-/projects/sun/resolver/.classes}:" +JAXP="${JAXP:-/usr/local/jaxp-1.1/jaxp.jar}:" +RESOLVER="${RESOLVER:-/projects/apache/xml-commons/java/build/classes}:" XERCES="${XERCES:-/projects/apache/xml-xerces/java/build/classes}:" CLASSPATH=$JAXP$RESOLVER$XERCES$CLASSPATH @@ -13,7 +13,7 @@ CLASSPATH=$JAXP$RESOLVER$XERCES$CLASSPATH #echo $CLASSPATH java \ - com.sun.resolver.apps.xread $* + org.apache.xml.resolver.apps.xread $* if [ $? != 0 ]; then echo "" -- 2.50.1