]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
This allows the tests to be run on *nix machines. Still nothing in the
authorSteve Coffman <gears@apache.org>
Mon, 24 Apr 2000 17:30:55 +0000 (17:30 +0000)
committerSteve Coffman <gears@apache.org>
Mon, 24 Apr 2000 17:30:55 +0000 (17:30 +0000)
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 [new file with mode: 0755]

diff --git a/docs/examples/runtests.sh b/docs/examples/runtests.sh
new file mode 100755 (executable)
index 0000000..315684a
--- /dev/null
@@ -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 $*