diff options
author | Joerg Pietschmann <pietsch@apache.org> | 2002-06-19 20:17:03 +0000 |
---|---|---|
committer | Joerg Pietschmann <pietsch@apache.org> | 2002-06-19 20:17:03 +0000 |
commit | c59bd616390ab026fd4ed379b4a96aad34de3072 (patch) | |
tree | ed7154e0d664bce6ce5f8e15d71a03b9238ff746 /docs | |
parent | 25952bffb5f495efaff55c044ae8194dcc696a6e (diff) | |
download | xmlgraphics-fop-c59bd616390ab026fd4ed379b4a96aad34de3072.tar.gz xmlgraphics-fop-c59bd616390ab026fd4ed379b4a96aad34de3072.zip |
added exit code 1 on error
attempt at deleting outfile on error
adapted runtests.sh for cywgin
fixed comments
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@194900 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/examples/runtests.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/examples/runtests.sh b/docs/examples/runtests.sh index cf4479616..f60c98827 100755 --- a/docs/examples/runtests.sh +++ b/docs/examples/runtests.sh @@ -12,10 +12,29 @@ if [ "$JAVA_HOME" = "" ] ; then echo "location of the Java Virtual Machine you want to use." exit 1 fi +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +case "`uname`" in + CYGWIN*) cygwin=true ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + + LIBDIR=../../lib LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant-1.4.1.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xercesImpl-2.0.1.jar:$LIBDIR/xml-apis.jar:$LIBDIR/xalan-2.3.1.jar:$LIBDIR/bsf.jar:$LIBDIR/avalon-framework-cvs-20020315.jar:$LIBDIR/jimi-1.0.jar:$LIBDIR/../build/fop.jar ANT_HOME=$LIBDIR +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"` +fi + echo Building with classpath $CLASSPATH:$LOCALCLASSPATH echo |