From e26a332130094764d067a60089a9d734ccc130bb Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Mon, 24 Apr 2000 17:30:55 +0000 Subject: [PATCH] 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 --- docs/examples/runtests.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 docs/examples/runtests.sh 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 $* -- 2.39.5