buildframework/helium/hlm
changeset 640 ac0bbc1e5d79
parent 628 7c4a911dc066
child 645 b8d81fa19e7d
equal deleted inserted replaced
639:0e65f93be3cb 640:ac0bbc1e5d79
    14 # Contributors:
    14 # Contributors:
    15 #
    15 #
    16 # Description: 
    16 # Description: 
    17 #
    17 #
    18 if [ ! $HELIUM_HOME ] ; then
    18 if [ ! $HELIUM_HOME ] ; then
    19     export HELIUM_HOME=$(dirname $(readlink /proc/$$/fd/255))
    19     export HELIUM_HOME=$(dirname $(readlink -f $0))
    20 fi
    20 fi
    21 
    21 
    22 export LANG="en_US.UTF-8"
    22 export LANG="en_US.UTF-8"
    23 export ANT_ARGS="-lib $HELIUM_HOME/extensions/nokia/external/antlibs2 -lib $HELIUM_HOME/external/antlibs2 -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"
    23 export ANT_ARGS="-lib $HELIUM_HOME/external/antlibs2 -logger com.nokia.ant.HeliumLogger -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener -listener com.nokia.helium.core.ant.listener.TargetTimesLogGeneratorListener"
    24 
    24 
    25 TEMP_PYTHONPATH="$HELIUM_HOME/external/python/lib/common:$HELIUM_HOME/external/python/lib/auto:$HELIUM_HOME/tools/common/python/scripts:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib"
    25 TEMP_PYTHONPATH="$HELIUM_HOME/external/python/lib/common:$HELIUM_HOME/external/python/lib/auto:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib"
    26 
    26 
    27 TEMP_PERL5LIB="$HELIUM_HOME/tools/common/packages"
    27 TEMP_PERL5LIB="$HELIUM_HOME/tools/common/packages"
    28 if [ ! $PERL5LIB ] ; then
    28 if [ ! $PERL5LIB ] ; then
    29     PERL5LIB=$TEMP_PERL5LIB
    29     PERL5LIB=$TEMP_PERL5LIB
    30 else
    30 else
    72 if [ ! $EPOCROOT ]; then
    72 if [ ! $EPOCROOT ]; then
    73     export EPOCROOT="/"
    73     export EPOCROOT="/"
    74 fi 
    74 fi 
    75 
    75 
    76 if [ ! -f "$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar" ] ; then
    76 if [ ! -f "$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar" ] ; then
    77     echo A required jar '$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar' is missing. Verification of basic tools used by Helium cannot be done. Contact Helium support.
    77     echo "Please build helium from nokia_builder or builder dir run 'bld && bld get-deps'"
    78     exit 1
    78     exit 1
    79 else 
    79 else 
    80     java -cp "$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "$HELIUM_HOME/config/helium.basic.tools.config"
    80     java -cp "$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "$HELIUM_HOME/config/helium.basic.tools.config"
    81 
    81 
    82     if [ $? -eq 0 ] ; then
    82     if [ $? -eq 0 ] ; then
    83       exec ant -Dpython.cachedir=$PYTHON_CACHEDIR -Dhelium.dir=$HELIUM_HOME -Dpython.path=$PYTHONPATH -Dcache.dir=$HELIUM_CACHE_DIR $*
    83         exec ant -Dpython.cachedir=$PYTHON_CACHEDIR -Dhelium.dir=$HELIUM_HOME -Dpython.path=$JYTHONPATH -Dcache.dir=$HELIUM_CACHE_DIR $*
    84     else
    84     else
    85         echo Build aborted with error
    85         exit 1
    86     fi    
    86     fi    
    87 fi   
    87 fi