buildframework/helium/sf/java/core/tests/build.bat
author wbernard
Tue, 27 Apr 2010 08:33:08 +0300
changeset 587 85df38eb4012
child 645 b8d81fa19e7d
permissions -rw-r--r--
helium_9.0-a7879c935424
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
call ant -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor %*
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
if "%ERRORLEVEL%" neq "0" (goto error)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
endlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
goto :eof
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
:error
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
endlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
if "%OS%"=="Windows_NT" color 00