buildframework/helium/sf/java/checktools/demo
author Zheng Shen <zheng.shen@nokia.com>
Wed, 13 Oct 2010 17:57:18 +0800
changeset 649 02d78c9f018e
parent 587 85df38eb4012
permissions -rw-r--r--
Remove distribution.policy file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
#!/bin/bash
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
# All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
# This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
# under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
# which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
# Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
# Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
# Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
# Description: 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
# loading the system wide settings from ~/.bashrc
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
if [ -f ~/.bashrc ] ; then
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
	. ~/.bashrc
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
fi
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
MODULE_VERSION="$(module --version 2>&1)"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
if [ "$?" == "0" ] ; then
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
    module load "java/1.6.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    module load "tww/ant/1.7.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
    module load tww/python/2.6.4
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
fi
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
export LANG="en_US.UTF-8"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
CWD=`pwd`
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
cd $CWD
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
export USERNAME=$USER
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
export PATH=$PATH:.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
java -cp "./../../bin/helium-checktools.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "./tests/config/helium.basic.tools.config"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
if [ "$?" == "-1" ] ; then
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
    echo *** Build aborted with error
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
fi    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43