]> granicus.if.org Git - docbook-dsssl/commitdiff
Added some portability fixes to xjparse.
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Jul 2006 09:04:15 +0000 (09:04 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Jul 2006 09:04:15 +0000 (09:04 +0000)
cvstools/xjparse

index 5e2caaf8d339aa2002b366a2cf1fbfbe5a4316ff..9563bbb7af3da30b3532f793ce53d000e653b8f9 100755 (executable)
@@ -9,7 +9,7 @@ MYDIR=`dirname $0`
 
 XERCES=`findxerces2`
 RESOLVER=`findresolver`
-if [ ! "$RESOLVER" ]; then
+if [ ! "$RESOLVER" ] && [[ $CLASSPATH != *xml-commons-resolver* ]]; then
   echo "cannot find resolver classes" 1>&2
   exit 1
 fi
@@ -24,7 +24,7 @@ fi
 
 XERCES="${XERCES:-/projects/apache/xml-xerces/java/build/classes}:"
 
-if [ ${RESOLVER/sun/} != ${RESOLVER} ]; then
+if [ $RESOLVER ] && [ ${RESOLVER/sun/} != ${RESOLVER} ]; then
     # guess this is the sun resolver
     XREAD=com.sun.resolver.apps.xread
 else