#!/bin/sh

cd $BIZXCLIENT_HOME/bin

JAR_DIR=.
JAR_FILES=
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-client.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-axis2reconst.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-axis2org.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-codec-1.3.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-collections-3.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-dbcp-1.2.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-discovery-0.2.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-fileupload-1.1.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-httpclient-3.0.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-io-1.2.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-logging-1.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-pool-1.3.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/log4j-1.3alpha-8.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/servletapi-2.3.jar
CLASSPATH=$JAR_FILES

$BIZXJAVA_HOME/bin/java \
  -classpath $CLASSPATH \
  -DConfigFileName=bizxcli.properties \
  -DErrorFileName=bizxcli_error \
  jp.webedi.sfi.bizx.client.management.Main -s $1 >/dev/null 2>&1

