#!/usr/bin/qsh

# @start_restricted_prolog@
# Version: @(#) 1.6 SIB/ws/code/sib.webservices.wsgw/src/bin/unix/migratewsgw.sh, SIB.webservices.wsgw, WASX.SIB 06/03/03 02:37:41 [4/26/06 11:34:10]
# 
# Licensed Materials - Property of IBM
# 
# "Restricted Materials of IBM"
# 
# 5724-I63, 5724-H88, 5655-N02, 5733-W70
# 
# (C) Copyright IBM Corp. 2004, 2006 All Rights Reserved.
# 
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with
# IBM Corp.
# @end_restricted_prolog@

progDir=`dirname $0`
workingDir=`pwd`
cd ${progDir}/../bin
. ./setupCmdLine
cd ${workingDir}

if [ ! "$USER_INSTALL_ROOT" ]; then
  USER_INSTALL_ROOT=$WAS_HOME
fi

${JAVA_HOME}/bin/java ${JAVA_PARM} \
  ${WAS_LOGGING} \
  -Dwas.repository.root="${CONFIG_ROOT}" \
  -Dlocal.cell="${WAS_CELL}" \
  -Dlocal.node="${WAS_NODE}" \
  -Dcom.ibm.ws.management.standalone=true \
  -Dcom.ibm.SSL.ConfigURL="file:${USER_INSTALL_ROOT}/properties/ssl.client.props" \
  -Dcom.ibm.itp.location="${WAS_HOME}/bin" \
  com.ibm.ws.bootstrap.WSLauncher \
  com.ibm.ws.sib.webservices.wsgw.Migrate "$@"

exit $?
