buildframework/helium/builder/bld.bat
author Ross Qin <ross.qin@nokia.com>
Tue, 30 Nov 2010 14:05:41 +0800
changeset 713 7b7f0409fc00
parent 645 b8d81fa19e7d
permissions -rw-r--r--
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
@echo off
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
rem
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
rem All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
rem This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
rem under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
rem which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
rem
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
rem Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
rem Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
rem
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
rem Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
rem
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
rem Description: 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
rem
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
setlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
if not defined JAVA_6_HOME (
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
set TESTED_JAVA=C:\Apps\j2sdk_1.6.0_02
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
) ELSE  set TESTED_JAVA=%JAVA_6_HOME%
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
if exist %TESTED_JAVA% (set JAVA_HOME=%TESTED_JAVA%)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
if not defined BUILDER_HOME (
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    set BUILDER_HOME=%~dp0
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
set JYTHONPATH=%BUILDER_HOME%\antlibs\jython-2.5-py2.5.egg
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
set PATH=%JAVA_HOME%\bin;%PATH%
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
    31
call ant -lib %BUILDER_HOME%\antlibs %*
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
if "%ERRORLEVEL%" neq "0" (goto error)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
endlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
goto :eof
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
:error
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
endlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
if "%OS%"=="Windows_NT" color 00