You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jv...@apache.org on 2001/03/21 21:10:29 UTC
cvs commit: jakarta-velocity/build test.sh
jvanzyl 01/03/21 12:10:29
Added: build test.sh
Log:
- script for running individual tests. i don't like running all
the tests all the time.
Revision Changes Path
1.1 jakarta-velocity/build/test.sh
Index: test.sh
===================================================================
#!/bin/sh
#----------------------------------------------
# Script for running individual velocity tests.
#----------------------------------------------
#-------------------------------------------------------------------
#--------------------------------------------
# No need to edit anything past here
#--------------------------------------------
if test -z "${JAVA_HOME}" ; then
echo "ERROR: JAVA_HOME not found in your environment."
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
fi
if test -f ${JAVA_HOME}/lib/tools.jar ; then
CLASSPATH="${CLASSPATH}:${JAVA_HOME}/lib/tools.jar"
fi
# convert the existing path to unix
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
CLASSPATH=${CLASSPATH}:./lib/ant-1.3.jar
CLASSPATH=${CLASSPATH}:./lib/ant-1.3-optional.jar
CLASSPATH=${CLASSPATH}:./lib/xerces-1.3.0.jar
CLASSPATH=${CLASSPATH}:./lib/werken.xpath.jar
CLASSPATH=${CLASSPATH}:./lib/antlr-runtime.jar
# convert the unix path to windows
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
if [ "$BUILDFILE" = "" ] ; then
BUILDFILE=testcases.xml
fi
${JAVA_HOME}/bin/java -classpath ${CLASSPATH} \
org.apache.tools.ant.Main \
-buildfile ${BUILDFILE} "$@"