xmlaccess/xmlaccess.sh.original

34 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-07-12 12:30:37 +02:00
#!/bin/sh
WPS_HOME=/opt/IBM/WebSphere/PortalServer
WAS_HOME=/opt/IBM/WebSphere/AppServer
PLATFORM=`uname`
if [ "$PLATFORM" = "OS400" ]
then
SETUPSDK_SCRIPT=_setupSdk
else
SETUPSDK_SCRIPT=_setupSdk.sh
fi
# Set JAVA_HOME
# Check SDK setting in the profile first. If not available, set SDK from WAS binary tree.
CURRENT_DIRECTORY=`pwd`
cd `dirname $0`
FULL_LOC_CURRENT_SCRIPT=`pwd`
if [ -f "${FULL_LOC_CURRENT_SCRIPT}/../../bin/sdk/${SETUPSDK_SCRIPT}" ];
then
. "${FULL_LOC_CURRENT_SCRIPT}/../../bin/sdk/${SETUPSDK_SCRIPT}"
else
. "${WAS_HOME}/bin/sdk/${SETUPSDK_SCRIPT}"
fi
cd ${CURRENT_DIRECTORY}
CPATH=${WAS_HOME}/plugins/com.ibm.ws.runtime.jar
CPATH=$CPATH:${WAS_HOME}/lib/bootstrap.jar
CPATH=$CPATH:${WAS_HOME}/plugins/com.ibm.ws.emf.jar
CPATH=$CPATH:${WAS_HOME}/plugins/org.eclipse.emf.ecore.jar
CPATH=$CPATH:${WAS_HOME}/plugins/org.eclipse.emf.common.jar
${JAVA_HOME}/bin/java -classpath ${WPS_HOME}/base/wp.xml.client/bin/wp.xml.client.jar:${WPS_HOME}/base/wp.base/shared/app/wp.base.jar:${WPS_HOME}/base/wp.engine.impl/shared/app/wp.engine.impl.jar:${WPS_HOME}/base/wp.utilities.streams/shared/app/wp.utilities.streams.jar:${WAS_HOME}/lib/j2ee.jar:$CPATH com.ibm.wps.xmlaccess.XmlAccess $*