#!/bin/bash
echo ""
echo ""
echo "Welcome to the XTF workshop!"
echo "Starting command prompt..."
sleep 1
clear
XTFWS=`/usr/bin/dirname "$0"`
echo "Welcome to the XTF workshop!"
echo ""
echo "Your Java:"
java -version 2>&1 | head -1
echo ""
echo "export XTFWS=\"$XTFWS\"" > /tmp/xtfworkshop_init
echo "export CATALINA_HOME=\"$XTFWS/tomcat\"" >> /tmp/xtfworkshop_init
echo "export XTF_HOME=\"$XTFWS/tomcat/webapps/xtf\"" >> /tmp/xtfworkshop_init
echo "cd \"$XTFWS\"" >> /tmp/xtfworkshop_init
unset PROMPT_COMMAND
export PS1="$ "
bash --rcfile /tmp/xtfworkshop_init
