blob: 60a1f564589a193d356a984c0653946e0028e4a4 [file] [log] [blame]
#!/bin/sh
# Couple of notes:
#
# This script is destructive in the sense that it will restart your
# tomcat, and also remove configuration files.
#
# Make sure that your junit.jar can be found in the classpath.
# The last resort is to drop it in your $JAVA_HOME/lib/ext, or on OSX
# /Library/Java/External/
#
# This is tuned for Tomcat 5.5. Any previous/later version may have
# unintended consequences.
#
export CATALINA_HOME=${HOME}/Java/tomcat-webtest
${CATALINA_HOME}/bin/shutdown.sh
rm -rf ${CATALINA_HOME}/webapps/test*
rm -rf ${CATALINA_HOME}/conf/Catalina/localhost/test*
${CATALINA_HOME}/bin/startup.sh
ant -Dbuild.properties=build.properties -find build.xml webtests