From: Joerg Pietschmann Date: Sun, 9 Mar 2003 21:21:45 +0000 (+0000) Subject: Quote some variable referenes in order to protect against spaces in X-Git-Tag: Alt-Design-integration-base~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd345c64a4e1b6bd15de82b2f5820fd187df97ad;p=xmlgraphics-fop.git Quote some variable referenes in order to protect against spaces in build.sh. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196054 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build.sh b/build.sh index 17cb78bcc..e84732967 100755 --- a/build.sh +++ b/build.sh @@ -26,16 +26,16 @@ if $cygwin ; then fi LIBDIR=lib -LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip -LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/ant.jar -LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xml-apis.jar -LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xercesImpl-2.2.1.jar -LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xalan-2.4.1.jar +LOCALCLASSPATH="$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip" +LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/ant.jar" +LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/xml-apis.jar" +LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/xercesImpl-2.2.1.jar" +LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/xalan-2.4.1.jar" -ANT_HOME=$LIBDIR +ANT_HOME="$LIBDIR" # antRun must be executable (can't do this in build.xml because Ant uses antRun # to do the chmod) -chmod +rx $LIBDIR/bin/antRun +chmod +rx "$LIBDIR/bin/antRun" # For Cygwin, switch paths to Windows format before running java @@ -49,5 +49,5 @@ echo Building with classpath $LOCALCLASSPATH echo Starting Ant... echo -$JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath "$LOCALCLASSPATH" org.apache.tools.ant.Main $* +"$JAVA_HOME"/bin/java -Dant.home="$ANT_HOME" -classpath "$LOCALCLASSPATH" org.apache.tools.ant.Main "$@"