#!/bin/bash

# Copyright (C) since 2012 NTT DATA Corporation
# 
# This program is free software; you can redistribute it and/or
# Modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, version 2.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details

# bash configuration
SCRIPT_DIR=$(cd $(dirname $0);pwd)
. ${SCRIPT_DIR}/../hinemos.cfg

DIR=`dirname $0`
USER=`/usr/bin/whoami`
HOST=`hostname`

########################################
#  Local Variable
########################################

JAVA_OPTS="-Xms16m -Xmx32m"
unset _JAVA_OPTIONS

JAVA_CP="${HINEMOS_HOME}/lib/cli/HinemosManagerCli.jar"
JAVA_CP="${JAVA_CP}:${HINEMOS_HOME}/lib/cli/ManagerCliWS.jar"
JAVA_CP="${JAVA_CP}:${HINEMOS_HOME}/lib/cli/commons-cli-1.2.jar"

########################################
#  Local Message
########################################

# INFO
MSG_I001=""

# WARN
MSG_W001=""

# ERROR
MSG_E001=""

########################################
# SHELL
########################################

${JAVA_HOME}/bin/java ${JAVA_OPTS} -cp ${JAVA_CP} com.clustercontrol.HinemosManagerCli $@
exit $?

