#!/bin/sh

LOCALCLASSPATH="."
DIRLIBS=/projects/bina/sjlobo/lib/*.jar
for i in ${DIRLIBS}
do
    # if the directory is empty, then it will return the input string
    # this is stupid, so case for it
    if [ "$i" != "${DIRLIBS}" ] ; then
      if [ -z "$LOCALCLASSPATH" ] ; then
	LOCALCLASSPATH=$i
      else
	LOCALCLASSPATH="$i":$LOCALCLASSPATH
      fi
    fi
done
DIRLIBS=${CLIENT_DIR}/lib/*.jar
for i in ${DIRLIBS}
do
    # if the directory is empty, then it will return the input string
    # this is stupid, so case for it
    if [ "$i" != "${DIRLIBS}" ] ; then
      if [ -z "$LOCALCLASSPATH" ] ; then
        LOCALCLASSPATH=$i
      else
        LOCALCLASSPATH="$i":$LOCALCLASSPATH
      fi
    fi
done

#append the path where all class files are placed
#LOCALCLASSPATH=${TUTORIAL_DIR}:${TUTORIAL_DIR}/build/classes:$LOCALCLASSPATH
#LOCALCLASSPATH=${GLOBUS_LOCATION}/guide/build/classes:$LOCALCLASSPATH

export LOCALCLASSPATH
