#!/usr/bin/ksh
###############################################################################
# %PS
#
# Licensed Internal Code - Property of IBM
# 2105/2107 Licensed Internal Code
# (C) Copyright IBM Corp. 2004, 2005 All Rights Reserved.
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
# %EPS
#
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
###############################################################################
#
# Description:
#   Concatenates all the XML files for a specified MTMS
#
# Usage:
#	inventoryScoutXMLConcatenate [MT-M-S]
#
# Return Codes:   0 = Success
#                 Non-zero = Failure
#
###############################################################################
#
# Change History:                 Problem/
#  Modifier           Date        Change ID   Description
# -----------------------------------------------------------------------------
# Adrian Sotomayor    2008-07-10  642368      Initial Creation
###############################################################################

hscnls=`echo /opt/hsc/jars/i18n/hsc_*.jar | sed -e 's/ /:/g'`
export CLASSPATH=$CLASSPATH:/usr/websm/codebase/pluginjars/svlrmcfull.jar:/usr/websm/codebase/pluginjars/hsc.jar:$hscnls:/usr/websm/codebase/wsm.jar:/usr/websm/codebase/pluginjars/rmcjava.jar:/usr/websm/codebase/pluginjars/aca.jar:/usr/websm/codebase/pluginjars/hsc_bundles.jar:/usr/websm/codebase/pluginjars/bundles.jar:/opt/ccfw/ccfw.jar:/usr/websm/codebase/pluginjars/sniacimom.jar

export LD_LIBRARY_PATH=/opt/hsc/lib:$LD_LIBRARY_PATH
# The following two exports are required for tasklets-on-pHMC:
export JITC_COMPILEOPT=NINLINING{java/math/BigInteger}{oddModPow}

/opt/IBMJava/jre/bin/java -Djavax.net.ssl.keyStore=/usr/websm/codebase/SM.pubkr -Djavax.net.ssl.keyStorePassword=defp -DPERFORM_INIT=NO -DCONSOLE_PATH=/opt/ccfw/ -Djava.security.policy=/opt/ccfw/data/rmipolicy -Djava.library.path=/opt/ccfw/lib/pseries:/opt/ccfw/lib/framework:/opt/ccfw/lib/base:/opt/hsc/lib com.ibm.hsc.common.util.InvScoutXMLConcatenate "$1"

exit $?
