buildframework/helium/hlm.bat
changeset 629 541af5ee3ed9
parent 628 7c4a911dc066
parent 590 360bd6b35136
child 645 b8d81fa19e7d
equal deleted inserted replaced
628:7c4a911dc066 629:541af5ee3ed9
     1 @echo off
     1 @echo off
     2 
     2 
     3 rem
     3 rem if not defined HELIUM_HOME set HELIUM_HOME=%~dp0..\..\..\helium
     4 rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     5 rem All rights reserved.
       
     6 rem This component and the accompanying materials are made available
       
     7 rem under the terms of the License "Eclipse Public License v1.0"
       
     8 rem which accompanies this distribution, and is available
       
     9 rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10 rem
       
    11 rem Initial Contributors:
       
    12 rem Nokia Corporation - initial contribution.
       
    13 rem
       
    14 rem Contributors:
       
    15 rem
       
    16 rem Description: 
       
    17 rem
       
    18 
     4 
    19 setlocal
     5 helium\hlm.bat %*
    20 
     6 
    21 REM Set the Helium location
     7 perl "%HELIUM_HOME%\tools\common\bin\getppid.pl" > %TEMP%\%USERNAME%pid.txt
    22 REM Make sure the path is not ending with a backslash!
     8 set /p PID=< %TEMP%\%USERNAME%pid.txt
    23 if not defined HELIUM_HOME (
       
    24 	set HELIUM_HOME_TEMP=%~dp0
       
    25 )
       
    26 if not defined HELIUM_HOME (
       
    27 	set HELIUM_HOME=%HELIUM_HOME_TEMP:~0,-1%
       
    28 )
       
    29 
       
    30 rem Loading runtime environment tools
       
    31 if exist "%HELIUM_HOME%\runtime\runtime_env.bat" (
       
    32 call %HELIUM_HOME%\runtime\runtime_env.bat
       
    33 ) 
       
    34 
       
    35 if not exist "%HELIUM_HOME%\extensions\nokia\build.xml" ( 
       
    36 set HLM_SUBCON=1
       
    37 set HLM_DISABLE_INTERNAL_DATA=1
       
    38 )
       
    39 
       
    40 
       
    41 REM Configure Java
       
    42 if not defined JAVA_6_HOME (
       
    43 set TESTED_JAVA=C:\Apps\j2sdk_1.6.0_02
       
    44 ) ELSE  set TESTED_JAVA=%JAVA_6_HOME%
       
    45 if exist "%TESTED_JAVA%" (set JAVA_HOME=%TESTED_JAVA%)
       
    46 if not exist "%JAVA_HOME%" ( echo *** Java cannot be found & goto :errorstop )
       
    47 set PATH=%JAVA_HOME%\bin;%PATH%
       
    48 
       
    49 REM Needed by python logging
       
    50 set PID=1
       
    51 perl "%HELIUM_HOME%\tools\common\bin\getppid.pl" > "%TEMP%\%USERNAME%pid.txt"
       
    52 set /p PID=< "%TEMP%\%USERNAME%pid.txt"
       
    53 
       
    54 REM Configure Apache Ant
       
    55 if not defined TESTED_ANT (
       
    56   set TESTED_ANT=C:\APPS\ant_1.7
       
    57 )
       
    58 if exist "%TESTED_ANT%" (set ANT_HOME=%TESTED_ANT%)
       
    59 if not exist "%ANT_HOME%" ( echo *** Ant cannot be found & goto :errorstop )
       
    60 
       
    61 set SIGNALING_ANT_ARGS= -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor
       
    62 set LOGGING_ANT_ARGS= -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener
       
    63 
     9 
    64 if not defined HLM_DISABLE_INTERNAL_DATA (
    10 if not defined HLM_DISABLE_INTERNAL_DATA (
    65 set INTERNAL_DATA_ANT_ARGS= -listener com.nokia.helium.internaldata.ant.listener.Listener
    11 set INTERNAL_DATA_ANT_ARGS= -listener com.nokia.helium.internaldata.ant.listener.Listener
    66 )
    12 )
    67 
    13