From 4250e5c3094d0fe50400fbb92e9a10b88b0d0d22 Mon Sep 17 00:00:00 2001 From: Simon Pepping Date: Fri, 13 Oct 2006 07:07:21 +0000 Subject: [PATCH] Improve the invocation of cygpath for cygwin. This fixes bug 40583. Patch contributed by Mark C. Allman . git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@463578 13f79535-47bb-0310-9956-ffa450edef68 --- fop | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/fop b/fop index 54981f410..e12e98d77 100755 --- a/fop +++ b/fop @@ -115,6 +115,22 @@ if $cygwin ; then JAVA_HOME=`cygpath --unix "$JAVA_HOME"` fi + +######################## +# Experimental code +######################## + +if [ "$OS" = "Windows_NT" ] ; then + pathSepChar=";" +else + pathSepChar=":" +fi +echo Path Sep Char set to ${pathSepChar} + +######################## +######################## + + if [ -z "$JAVACMD" ] ; then if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then @@ -142,7 +158,7 @@ if [ -n "$CLASSPATH" ] ; then fi # add fop.jar, fop-sandbox and fop-hyph.jar, which reside in $FOP_HOME/build -LOCALCLASSPATH=${FOP_HOME}/build/fop.jar:${FOP_HOME}/build/fop-sandbox.jar:${FOP_HOME}/build/fop-hyph.jar:$LOCALCLASSPATH +LOCALCLASSPATH=${FOP_HOME}/build/fop.jar${pathSepChar}${FOP_HOME}/build/fop-sandbox.jar${pathSepChar}${FOP_HOME}/build/fop-hyph.jar${pathSepChar}$LOCALCLASSPATH # add in the dependency .jar files, which reside in $FOP_HOME/lib DIRLIBS=${FOP_HOME}/lib/*.jar @@ -154,14 +170,14 @@ do if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH=$i else - LOCALCLASSPATH="$i":$LOCALCLASSPATH + LOCALCLASSPATH="$i"${pathSepChar}$LOCALCLASSPATH fi fi done # add in user-defined hyphenation JARs if [ -n "$FOP_HYPHENATION_PATH" ] ; then - LOCALCLASSPATH=$LOCALCLASSPATH:$FOP_HYPHENATION_PATH + LOCALCLASSPATH=$LOCALCLASSPATH${pathSepChar}$FOP_HYPHENATION_PATH fi # For Cygwin, switch paths to appropriate format before running java @@ -184,6 +200,7 @@ if $cygwin; then fi CYGHOME=`cygpath --$format "$HOME"` fi +echo local class path: $LOCALCLASSPATH # Show script help if requested if $show_help ; then -- 2.39.5