# Display of config.sh File

## Information Taken from /u01/install/APPS/fs1/FMW_Home/wlserver_10.3/common/bin/config.sh

     -rwxr-x--- 1 applmgr oinstall 2279  Apr 21 18:23 2015  Apr 21 18:23 2015  config.sh

    #!/bin/sh

    # Convert the 1st arg to an absolute path.  OS specific
    absolutePath() {
      case $OS in
      Windows_NT*)
        # for MKS Toolkit on Windows, an absolute path starts with a drive letter prefix or a UNC path.
        # Assume only forward slashes
        case $1 in
          [a-zA-Z]:*)
            # Drive prefix
            echo $1
            ;;
          //*)
            # UNC path
            echo $1
            ;;
          /*)
            # path is absolute, but the drive is relative
            p=${mypwd##??}
            echo ${mypwd%%${p}}$1
            ;;
          *)
            # relative path
            echo ${mypwd}/$1
            ;;
        esac
        ;;
      *)
        # for everything else, an initial / indicates an absolute path
        case $1 in
          /*)
            # absolute path
            echo $1
            ;;
          *)
            # relative path
            echo ${mypwd}/$1
            ;;
        esac
        ;;
      esac
    }

    # set up WL_HOME, the root directory of your WebLogic installation
    WL_HOME="/u01/install/APPS/fs1/FMW_Home/wlserver_10.3"

    OS=`uname -s`

    umask 027

    # set up common environment
    . "${WL_HOME}/common/bin/commEnv.sh"

    CLASSPATHSEP=:

    case $OS in
    Windows_NT*)
      CLASSPATHSEP=\;
    ;;
    CYGWIN*)
      CLASSPATHSEP=\;
    ;;
    esac
    export CLASSPATHSEP
    CLASSPATH="${FMWCONFIG_CLASSPATH}${CLASSPATHSEP}${DERBY_CLASSPATH}"
    export CLASSPATH

    mypwd="`pwd`"

    while [ "$#" -gt "0" ]
    do
      ARGNAME=`echo $1 | cut -d'=' -f1`
      ARGVALUE=`echo $1 | cut -d'=' -f2`

      if [ "`echo ${ARGVALUE} | cut -c1`" = "-" ] ; then
        echo "ERROR! Missing equal(=) sign. Arguments must be -name=value!"
        exit 1
      fi

      if [ "${ARGVALUE}" = "" ] ; then
        echo "ERROR! Missing value! Arguments must be -name=value!"
        exit 1
      fi

      case $ARGNAME in
         "-log" | "-silent_script")
            ARGVALUE=`absolutePath "${ARGVALUE}"`
            ARGUMENTS="${ARGUMENTS} ${ARGNAME}='${ARGVALUE}'"
            ;;
         "-useXACML")
            MEM_ARGS="${MEM_ARGS} -DuseXACML='${ARGVALUE}'";;
         *) ARGUMENTS="${ARGUMENTS} ${ARGNAME}='${ARGVALUE}'";;
      esac
      shift
    done
    export ARGUMENTS

    cd "${WL_HOME}/common/lib"

    JVM_ARGS="-Dprod.props.file='${WL_HOME}/.product.properties' -Dpython.cachedir=/tmp/cachedir ${JVM_D64} ${MEM_ARGS} ${CONFIG_JVM_ARGS}"

    eval '"${JAVA_HOME}/bin/java"' ${JVM_ARGS} com.oracle.cie.wizard.WizardController ${ARGUMENTS}

    returnCode=$?

    cd $mypwd

    exit $returnCode

Back to top