#!/bin/sh

echo "########################################################"
echo "Sample Run Script"
echo "Copyright reserved Developerfeed.com@2010-2012!"
echo "########################################################"

# relative classes
root_dir=../
lib_dir=../lib

# include all libs in jar file
for i in ../lib/*.jar; do
  classpath=$classpath:$i
done

classpath=$classpath:../build/classes
classpath=$classpath:$root_dir/config

env_options=-Dlog4j.properties=log4j.properties
java_cmd_line="java -cp $classpath $env_options"

#launch the program
echo "########################################################"
echo "Launching the program"
echo "########################################################"
$java_cmd_line com.xyz.server.Startup