#!/usr/bin/qsh
# // THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
# // 5724-I63, 5724-H88, 5655-N01, 5733-W61 (C) COPYRIGHT International Business Machines Corp., 1997,2006
# // All Rights Reserved * Licensed Materials - Property of IBM
# // US Government Users Restricted Rights - Use, duplication or disclosure
# // restricted by GSA ADP Schedule Contract with IBM Corp.
#
# //  DESCRIPTION:

. $(/usr/bin/dirname $0)/setupCmdLine

JAVA_SECURITY_FILE=
if [ "${INSTANCE_USE_J9}" = "true" ]; then
  if [ -e ${WAS_INSTALL_ROOT}/profileTemplates/default/documents/properties/j9/java.security ]; then
    JAVA_SECURITY_FILE=${WAS_INSTALL_ROOT}/profileTemplates/default/documents/properties/j9/java.security
  fi
else
  if [ -e ${WAS_INSTALL_ROOT}/profileTemplates/default/documents/properties/java.security ]; then
    JAVA_SECURITY_FILE=${WAS_INSTALL_ROOT}/profileTemplates/default/documents/properties/java.security
  fi
fi

CP="${WAS_INSTALL_ROOT}/lib/bootstrap400.jar:\
${WAS_CLASSPATH}:\
${WAS_INSTALL_ROOT}/plugins/com.ibm.ws.runtime.os400_6.1.0.jar:\
${WAS_INSTALL_ROOT}/plugins/com.ibm.ws.runtime_6.1.0.jar:\
${WAS_INSTALL_ROOT}/plugins/com.ibm.ws.bootstrap_6.1.0.jar:\
${WAS_INSTALL_ROOT}/plugins/com.ibm.ws.emf_2.1.0.jar:\
${WAS_INSTALL_ROOT}/plugins/com.ibm.ws.security.crypto_6.1.0.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.emf.ecore_2.2.1.v200609210005.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.emf.ecore.xmi_2.2.1.v200609210005.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.emf.common_2.2.1.v200609210005.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar:\
${WAS_INSTALL_ROOT}/plugins/org.eclipse.equinox.registry_3.2.1.R32x_v20060814.jar"

java ${JAVA_PARM} \
  -classpath ${CP} \
  -DWAS_HOME=${WAS_INSTALL_ROOT} \
  -Dsecurity.overridePropertiesFile=true \
  -Djava.security.properties=${JAVA_SECURITY_FILE} \
  -Dos400.file.create.auth=RX \
  -Dos400.dir.create.auth=RX \
  com.ibm.ws.bootstrap.WSLauncher \
  com.ibm.wsspi.profile.WSProfileCLI ${REGISTRY_PARM} $@