#!/bin/sh
set -x
set -o errexit

# JOB_NAME environment variable must be set. We count on Hudson for this.

controlScript=$WORKSPACE/working_copy/resources/continuous-integration/deploy/tomcat/control.sh
lastStableWAR=$WORKSPACE/working_copy/application/target/mifos-webapp.war
deployRoot=$HOME/deploys/mifos-$JOB_NAME-deploy
targetWARlocation=$deployRoot/tomcat6/webapps/mifos.war

$controlScript stop
rm -f $deployRoot/tomcat6/logs/*
rm -f $deployRoot/tomcat6/webapps/mifos
cp $lastStableWAR $targetWARlocation
$controlScript start

#!/bin/sh
set -x
set -o errexit

# JOB_NAME environment variable must be set. We count on Hudson for this.

controlScript=$WORKSPACE/working_copy/resources/continuous-integration/deploy/tomcat/control.sh
lastStableWAR=$WORKSPACE/working_copy/application/target/mifos-webapp.war
deployRoot=$HOME/deploys/mifos-$JOB_NAME-deploy
targetWARlocation=$deployRoot/tomcat6/webapps/mifos.war

$controlScript stop
rm -f $deployRoot/tomcat6/logs/*
rm -rf $deployRoot/tomcat6/webapps/mifos
cp $lastStableWAR $targetWARlocation
$controlScript start

Fix command to nuke exploded WAR dir.
Fix command to nuke exploded WAR dir.


git-svn-id: 6bd94cac40bd5c1df74b384d972046d926de6ffa@15805 a8845c50-7012-0410-95d3-8e1449b9b1e4
