blob: 93536b09f085aed3b7612cdf327309a1ac032b79 [file] [log] [blame]
#!/bin/bash
_SMPL_DIR="$PWD"
if [ $# -ne 2 ]
then
echo "Usage : $0 scenarioX server-port"
exit
fi
S_i=$1
_PORT=$2
echo "-------------------------------------------------------------------------"
echo ">Deploying $S_i"
sh deploy.sh $S_i
echo ">Killing server"
killall axis2_http_server
echo ">Go to $AXIS2C_HOME"
cd $AXIS2C_HOME/bin
echo ">Start server @ $_PORT"
./axis2_http_server -p$_PORT &
sleep 2
echo ">Go to client directory"
cd $AXIS2C_HOME/samples/bin/rampartc
echo ">Run the sample"
if [ $S_i = 'scenario14' ]
then
sh saml_echo_update_n_run.sh
else
sh update_n_run.sh
fi
echo ">Jump back to samples dir :$_SMPL_DIR"
cd $_SMPL_DIR
killall axis2_http_server
echo "DONE"