From: Steve Coffman Date: Mon, 24 Apr 2000 17:30:55 +0000 (+0000) Subject: This allows the tests to be run on *nix machines. Still nothing in the X-Git-Tag: pre-columns~524 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e26a332130094764d067a60089a9d734ccc130bb;p=xmlgraphics-fop.git This allows the tests to be run on *nix machines. Still nothing in the reference directory in CVS to check against though... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193340 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/examples/runtests.sh b/docs/examples/runtests.sh new file mode 100755 index 000000000..315684a15 --- /dev/null +++ b/docs/examples/runtests.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +echo +echo "Fop Test" +echo "----------------" +echo + +if [ "$JAVA_HOME" = "" ] ; then + echo "ERROR: JAVA_HOME not found in your environment." + echo + echo "Please, set the JAVA_HOME variable in your environment to match the" + echo "location of the Java Virtual Machine you want to use." + exit 1 +fi + +LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:../../lib/ant.jar:../../lib/xml.jar:../../lib +ANT_HOME=../../lib + +echo Building with classpath $CLASSPATH:$LOCALCLASSPATH +echo + +echo Starting Tests... +echo + +$JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath "$LOCALCLASSPATH:$CLASSPATH" org.apache.tools.ant.Main $*