buildframework/helium/external/cc-customizations/overlay/cruisecontrol.bat
changeset 1 be27ed110b50
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     1 @echo off
       
     2 
       
     3 rem
       
     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 
       
    19 setlocal
       
    20 set HELIUMCCEXT_HOME=%~dp0
       
    21 
       
    22 REM Detecting CruiseControl
       
    23 if not defined CCDIR (
       
    24 if exist "%HELIUMCCEXT_HOME%..\..\cruisecontrol\cruisecontrol.bat" (
       
    25 set CCDIR=%HELIUMCCEXT_HOME%..\..\cruisecontrol
       
    26 ) else (
       
    27 echo CCDIR is not defined
       
    28 goto :end
       
    29 )
       
    30 )
       
    31 
       
    32 if not defined DASHBOARD_CONFIG set DASHBOARD_CONFIG=%HELIUMCCEXT_HOME%helium-dashboard-config.xml
       
    33 set CC_OPTS=%CC_OPTS%  -Ddashboard.config=%DASHBOARD_CONFIG% -Dhelium.cc.ext.home=%HELIUMCCEXT_HOME%
       
    34 set CC_ARGS=-lib %HELIUMCCEXT_HOME%lib -webapppath %CCDIR%/webapps/cruisecontrol -dashboard %CCDIR%/webapps/dashboard -jettyxml %HELIUMCCEXT_HOME%etc/jetty.xml %CC_ARGS%
       
    35 call %CCDIR%\cruisecontrol.bat %CC_ARGS% %*
       
    36 :end
       
    37 endlocal