buildframework/helium/hlm
changeset 217 0f5e3a7fb6af
parent 179 d8ac696cc51f
child 587 85df38eb4012
equal deleted inserted replaced
181:59bb7c4d6172 217:0f5e3a7fb6af
    23 if [ -f $HELIUM_HOME/extensions/nokia/env.sh ] ; then
    23 if [ -f $HELIUM_HOME/extensions/nokia/env.sh ] ; then
    24     . $HELIUM_HOME/extensions/nokia/env.sh
    24     . $HELIUM_HOME/extensions/nokia/env.sh
    25 fi
    25 fi
    26 
    26 
    27 export LANG="en_US.UTF-8"
    27 export LANG="en_US.UTF-8"
    28 export ANT_ARGS="-lib $HELIUM_HOME/extensions/nokia/external/antlibs -lib $HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/bin -lib $HELIUM_HOME/external/helium-antlib/bin -lib $HELIUM_HOME/external/antlibs -lib $HELIUM_HOME/tools/common/java/lib -logger com.nokia.ant.HeliumLogger -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor -listener com.nokia.helium.diamonds.ant.HeliumListener -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener"
    28 export ANT_ARGS="-lib $HELIUM_HOME/extensions/nokia/external/antlibs -lib $HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/bin -lib $HELIUM_HOME/external/helium-antlib/bin -lib $HELIUM_HOME/external/antlibs -lib $HELIUM_HOME/tools/common/java/lib -logger com.nokia.ant.HeliumLogger -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor -listener com.nokia.helium.diamonds.ant.HeliumListener -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener -listener com.nokia.helium.core.ant.listener.TargetTimesLogGeneratorListener"
    29 
    29 
    30 PYTHON_VERSION=`python -c "import sys; print sys.version[:3]"`
    30 PYTHON_VERSION=`python -c "import sys; print sys.version[:3]"`
    31 PYTHON_VERSION2=$PYTHON_VERSION$HOSTTYPE
    31 PYTHON_VERSION2=$PYTHON_VERSION$HOSTTYPE
    32 PYTHONLIB=$HELIUM_HOME/external/python/lib/linux/$PYTHON_VERSION2
    32 PYTHONLIB=$HELIUM_HOME/external/python/lib/linux/$PYTHON_VERSION2
    33 
    33 
    34 TEMP_PYTHONPATH="$PYTHONLIB:$HELIUM_HOME/external/python/lib/common:$HELIUM_HOME/tools/common/python/lib:$HELIUM_HOME/tools/common/python/scripts:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib"
    34 TEMP_PYTHONPATH="$PYTHONLIB:$HELIUM_HOME/external/python/lib/common:$HELIUM_HOME/external/helium-antlib/python/pythoncore/lib:$HELIUM_HOME/tools/common/python/scripts:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib:$HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/python:$HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/python/pythonnokia/lib"
    35 
       
    36 if [ ! $PYTHONPATH ] ; then
       
    37     export PYTHONPATH=$TEMP_PYTHONPATH
       
    38 else
       
    39     export PYTHONPATH="$PYTHONPATH:$TEMP_PYTHONPATH"
       
    40 fi
       
    41 
       
    42 TEMP_JYTHONPATH="$HELIUM_HOME/external/python/lib/2.5/jython-2.5-py2.5.egg:$PYTHONPATH"
       
    43 
       
    44 if [ ! $JYTHONPATH ] ; then
       
    45     export JYTHONPATH=$TEMP_JYTHONPATH
       
    46 else
       
    47     export JYTHONPATH="$JYTHONPATH:$TEMP_JYTHONPATH"
       
    48 fi
       
    49 
    35 
    50 TEMP_PERL5LIB="$HELIUM_HOME/tools/common/packages"
    36 TEMP_PERL5LIB="$HELIUM_HOME/tools/common/packages"
    51 if [ ! $PERL5LIB ] ; then
    37 if [ ! $PERL5LIB ] ; then
    52     PERL5LIB=$TEMP_PERL5LIB
    38     PERL5LIB=$TEMP_PERL5LIB
    53 else
    39 else
    65 
    51 
    66 CWD=`pwd`
    52 CWD=`pwd`
    67 
    53 
    68 if [ ! -e "$PYTHONLIB" ] ; then
    54 if [ ! -e "$PYTHONLIB" ] ; then
    69     mkdir $PYTHONLIB
    55     mkdir $PYTHONLIB
    70     cp $HELIUM_HOME/external/python/lib/linux/site.py $PYTHONLIB
    56     cp $HELIUM_HOME/external/python/lib/common/site.py $PYTHONLIB
    71 fi
    57 fi
       
    58 
       
    59 export PYTHONPATH=$HELIUM_HOME/external/python/lib/common/setuptools-0.6c5-py2.5.egg
    72 
    60 
    73 if [ ! -e "$PYTHONLIB/4Suite_XML-1.0.2.egg" ] ; then
    61 if [ ! -e "$PYTHONLIB/4Suite_XML-1.0.2.egg" ] ; then
    74     cp $HELIUM_HOME/external/python/lib/linux/easy-install.pth $PYTHONLIB
    62     cp $HELIUM_HOME/external/python/lib/linux/easy-install.pth $PYTHONLIB
    75     tar xvfz $HELIUM_HOME/external/python/lib/linux/4Suite-XML-1.0.2.tar.gz -C $PYTHONLIB > /dev/null
    63     tar xvfz $HELIUM_HOME/external/python/lib/linux/4Suite-XML-1.0.2.tar.gz -C $PYTHONLIB > /dev/null
    76     cd $PYTHONLIB/4Suite-XML-1.0.2
    64     cd $PYTHONLIB/4Suite-XML-1.0.2
    94     mv build/lib* $PYTHONLIB/PyXML-0.8.4.egg
    82     mv build/lib* $PYTHONLIB/PyXML-0.8.4.egg
    95 fi
    83 fi
    96 
    84 
    97 cd $CWD
    85 cd $CWD
    98 
    86 
       
    87 if [ ! $PYTHONPATH ] ; then
       
    88     export PYTHONPATH=$TEMP_PYTHONPATH
       
    89 else
       
    90     export PYTHONPATH="$PYTHONPATH:$TEMP_PYTHONPATH"
       
    91 fi
       
    92 
       
    93 TEMP_JYTHONPATH="$HELIUM_HOME/external/python/lib/2.5/jython-2.5-py2.5.egg:$PYTHONPATH"
       
    94 
       
    95 if [ ! $JYTHONPATH ] ; then
       
    96     export JYTHONPATH=$TEMP_JYTHONPATH
       
    97 else
       
    98     export JYTHONPATH="$JYTHONPATH:$TEMP_JYTHONPATH"
       
    99 fi
       
   100 
    99 export USERNAME=$USER
   101 export USERNAME=$USER
   100 export SYMSEE_VERSION="not_in_use"
   102 export SYMSEE_VERSION="not_in_use"
   101 export PID=$$
   103 export PID=$$
   102 export TEMP="/tmp/$USER"
   104 export TEMP="/tmp/$USER"
   103 if [ $JOB_ID ] ; then
   105 if [ $JOB_ID ] ; then
   111 mkdir -p $HELIUM_CACHE_DIR
   113 mkdir -p $HELIUM_CACHE_DIR
   112 
   114 
   113 if [ ! $EPOCROOT ]; then
   115 if [ ! $EPOCROOT ]; then
   114     export EPOCROOT="/"
   116     export EPOCROOT="/"
   115 fi 
   117 fi 
   116 exec ant -Dpython.cachedir=$PYTHON_CACHEDIR -Dhelium.dir=$HELIUM_HOME -Dpython.path=$PYTHONPATH -Dcache.dir=$HELIUM_CACHE_DIR $* 
   118 
       
   119 if [ ! -f "$HELIUM_HOME/external/helium-antlib/bin/helium-checktools.jar" ] ; then
       
   120     echo helium-checktools.jar not found
       
   121 else 
       
   122     java -cp "$HELIUM_HOME/external/helium-antlib/bin/helium-checktools.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "$HELIUM_HOME/config/helium.basic.tools.config"
       
   123 
       
   124     if [ $? -eq 0 ] ; then
       
   125       exec ant -Dpython.cachedir=$PYTHON_CACHEDIR -Dhelium.dir=$HELIUM_HOME -Dpython.path=$PYTHONPATH -Dcache.dir=$HELIUM_CACHE_DIR $*
       
   126     else
       
   127         echo Build aborted with error
       
   128     fi    
       
   129 fi