#---------------------------------
#INPUT FORMAT
#---------------------------------
#export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
#JAVA_HOME=/usr/jdk/instances/jdk1.6.0
#export JAVA_HOME
#JAVA_RUN=$JAVA_HOME/bin/java
LD_LIBRARY_PATH=/oracle/lib:/usr/lib:/lib:/usr/ccs/lib:/usr/local/lib:.:/arborbpusr/arborsit/Debbie/C_test/20140212/jniso
export LD_LIBRARY_PATH
CLFYLOG=/ArbSIT_share/arborbpusr/arborsit/Debbie/C_test
export CLFYLOG
# Setting the classes path while loading
CLASSPATH=${CLASSPATH}:../lib/asm-3.3.1.jar
CLASSPATH=${CLASSPATH}:../lib/jetty-server-8.1.12.v20130726.jar
CLASSPATH=${CLASSPATH}:../lib/jetty-util-8.1.12.v20130726.jar
CLASSPATH=${CLASSPATH}:../lib/commons-logging-1.1.3.jar
CLASSPATH=${CLASSPATH}:../lib/cxf-2.7.7.jar
CLASSPATH=${CLASSPATH}:../lib/log4j-1.2.17.jar
CLASSPATH=${CLASSPATH}:../lib/geronimo-activation_1.0.2_spec-1.1.jar
CLASSPATH=${CLASSPATH}:../lib/msv-core-2011.1.jar
CLASSPATH=${CLASSPATH}:../lib/geronimo-servlet_3.0_spec-1.0.jar
CLASSPATH=${CLASSPATH}:../lib/neethi-3.0.2.jar
CLASSPATH=${CLASSPATH}:../lib/javax.annotation-api-1.2.jar
CLASSPATH=${CLASSPATH}:../lib/slf4j-api-1.7.5.jar
CLASSPATH=${CLASSPATH}:../lib/jaxb-api-2.2.6.jar
CLASSPATH=${CLASSPATH}:../lib/slf4j-log4j12-1.7.5.jar
CLASSPATH=${CLASSPATH}:../lib/jaxb-impl-2.2.6.jar
CLASSPATH=${CLASSPATH}:../lib/stax2-api-3.1.1.jar
CLASSPATH=${CLASSPATH}:../lib/jetty-continuation-8.1.12.v20130726.jar
CLASSPATH=${CLASSPATH}:../lib/woodstox-core-asl-4.2.0.jar
CLASSPATH=${CLASSPATH}:../lib/jetty-http-8.1.12.v20130726.jar
CLASSPATH=${CLASSPATH}:../lib/wsdl4j-1.6.3.jar
CLASSPATH=${CLASSPATH}:../lib/jetty-io-8.1.12.v20130726.jar
CLASSPATH=${CLASSPATH}:../lib/xmlschema-core-2.0.3.jar
CLASSPATH=${CLASSPATH}:./ArborC.jar
export CLASSPATH
start()
{
java -Dfile.encoding=UTF8 -Djava.library.path=/ArbSIT_share/arborbpusr/arborsit/Debbie/C_test/20140212/jniso -Dlog4j.configuration=/Users/arda/Documents/SparqWorkspace-arbor/ArborC/conf/log4j.properties com.foyatech.arbor.main.startMain /Users/arda/Documents/SparqWorkspace-arbor/ArborC/conf/ServiceSetting.xml&
echo $! >$ArborCWS_PIDFILE
}
shut()
{
# This will kill the java process AND the JBoss AS java process.
kill `cat $ArborCWS_PIDFILE`
}
ArborCWS_PIDFILE=PID_FILE
USAGE="Usage : `basename $0` [stop/start]"
if [ $# -lt 1 ]; then
echo "$USAGE"
exit
fi
if [ $1 = "start" ]; then
start
fi
if [ $1 = "stop" ]; then
shut
fi