#! /bin/sh # # This file is included by the quickstart script file "bwinitdir" so that it can live # within the svn repository. # errorUsage() { echo "*******************************************************" echo "Error: $1" echo "*******************************************************" usage exit 1 } if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then errorUsage "JAVA_HOME is not defined correctly for Bedework." fi ANT_HOME=`dirname "$PRG"`/apache-ant-1.7.0 ANT_HOME=`cd "$ANT_HOME" && pwd` usage() { echo " $PRG help | ? " echo "" echo " Invokes ant to build the Bedework tools then uses that tool to " echo " initialise the directory." echo "" } saveddir=`pwd` export QUICKSTART_HOME=$saveddir CLASSPATH=$ANT_HOME/lib/ant-launcher.jar ant_home_def="-Dant.home=$ANT" ant_class_def="org.apache.tools.ant.launch.Launcher" $JAVA_HOME/bin/java -classpath $CLASSPATH $ant_home_def $ant_class_def initDir