done
fi
-##
-## optionally replace the URI resolver with the Sun
-## resolver classes, not yet available to the public?
-##
-for path in "/projects/apache/xml-commons/java/build/classes" ; do
- if [ -f "$path" -o -d "$path" ]; then
- SUN="$path"
- break
- fi
-done
-
-if [ -f "$SUN" -o -d "$SUN" ]; then
- # use the sun resolver
- if [ ! "$XARG" ]; then
- XARG="-x org.apache.xml.resolver.tools.ResolvingXMLReader"
- fi
- if [ ! "$YARG" ]; then
- YARG="-y org.apache.xml.resolver.tools.ResolvingXMLReader"
- fi
- if [ ! "$RARG" ]; then
- RARG="-r org.apache.xml.resolver.tools.CatalogResolver"
- fi
-fi
-
##
## locate Xerces classpath
##
##
if [ ! "$JAXP" ]; then
for path in "/usr/local/share/java/jaxp.jar" \
- "/usr/local/share/java/jaxp.jar" \
"/usr/local/java/jaxp.jar" \
"/usr/local/jaxp-1.1/jaxp.jar" \
"/usr/local/share/java/jaxp-1.1/jaxp.jar" \
fi
##
-## optionally replace the URI resolver with the Sun
+## optionally replace the URI resolver with the Apache
## resolver classes
##
-for path in "/projects/sun/resolver/.classes" \
- "/projects/apache/xml-commons/java/build/classes" \
- "/usr/local/share/java/sun-resolver.jar" \
- "/usr/local/java/sun-resolver.jar" \
- "/usr/share/java/sun-resolver.jar"; do
+for path in $RESOLVER \
+ "/projects/apache/xml-commons/java/build/classes" ; do
if [ -f "$path" -o -d "$path" ]; then
RESOLVER="$path"
break
if [ -f "$RESOLVER" -o -d "$RESOLVER" ]; 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
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
CLASSPATH=$SAXON:$NDWEXT:$JAXP:$RESOLVER:$XERCES:$CLASSPATH