Revert package name changes
[dmaap/messagerouter/messageservice.git] / src / main / swm / common / install.env
1
2 # This file is used to set the environment which the install_*.sh files
3 # will use when executing.  Only set variables that must be derived at
4 # installation time here.  For variables that should be set by the installer
5 # in SWM, add VariableDescriptor elements to the descriptor.xml.  Place
6 # logical steps in the install_preproc.sh or install_postproc.sh.
7
8 . `dirname $0`/common.env
9
10 # CHECK FOR ABSOLUTELY REQUIRED VARIABLES HERE
11 test -z "${SCLD_ENV}" && fail 1 "SCLD_ENV required"
12 test -z "${LATITUDE}" && fail 2 "LATITUDE required"
13 test -z "${LONGITUDE}" && fail 3 "LONGITUDE required"
14 test -z "${AFT_ENVIRONMENT}" && fail 4 "AFT_ENVIRONMENT required"
15
16 #derive version components for lrm.xml
17 MAJOR_VERSION=`echo ${AFTSWM_ACTION_NEW_VERSION} | awk -F'.' '{print $1}'`; export MAJOR_VERSION
18 MINOR_VERSION=`echo ${AFTSWM_ACTION_NEW_VERSION} | awk -F'.' '{print $2}'`; export MINOR_VERSION
19 PATCH_VERSION=`echo ${AFTSWM_ACTION_NEW_VERSION} | awk -F'.' '{print $3}'`; export PATCH_VERSION
20
21 # special handling for introscope...
22 if [ ! -z "${INTROSCOPE_LIB}" ]; then
23         if [ -z "${INTROSCOPE_AGENTPROFILE}" ]; then
24             fail 100 "INTROSCOPE_AGENTPROFILE must be set"
25         fi
26         
27         if [ -f ${INTROSCOPE_LIB}/Agent.jar ] && [ -f ${INTROSCOPE_AGENTPROFILE} ]; then
28                 if [ -f ${TEMPLATE_RSRC_XML} ]; then
29                         INTROSCOPE_VARS="-javaagent:${INTROSCOPE_LIB}/Agent.jar -noverify -Dcom.wily.introscope.agentProfile=${INTROSCOPE_AGENTPROFILE} -Dintroscope.agent.agentName=${AFTSWM_ACTION_ARTIFACT_NAME}"
30                         export INTROSCOPE_VARS
31                 fi
32         else
33                 INTROSCOPE_VARS=""; export INTROSCOPE_VARS
34         fi
35 else
36         INTROSCOPE_VARS=""; export INTROSCOPE_VARS
37 fi