diff options
author | Joerg Pietschmann <pietsch@apache.org> | 2003-03-09 21:21:45 +0000 |
---|---|---|
committer | Joerg Pietschmann <pietsch@apache.org> | 2003-03-09 21:21:45 +0000 |
commit | dd345c64a4e1b6bd15de82b2f5820fd187df97ad (patch) | |
tree | 30144c84e45301167d1d4ec2a7149dd4c9ab4d44 /build.sh | |
parent | f5540f2e60b32cf49fa912008bab243a5c75cf35 (diff) | |
download | xmlgraphics-fop-dd345c64a4e1b6bd15de82b2f5820fd187df97ad.tar.gz xmlgraphics-fop-dd345c64a4e1b6bd15de82b2f5820fd187df97ad.zip |
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
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 "$@" |