buildframework/helium/external/helium-antlib/builder/bld.bat
author timothy.murphy@nokia.com
Wed, 07 Apr 2010 19:34:49 +0100
branchfix
changeset 468 27d111560672
parent 217 0f5e3a7fb6af
permissions -rw-r--r--
Merge in resource speedups
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     1
@echo off
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     2
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     3
rem
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     4
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     5
rem All rights reserved.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     6
rem This component and the accompanying materials are made available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     7
rem under the terms of the License "Eclipse Public License v1.0"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     8
rem which accompanies this distribution, and is available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     9
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    10
rem
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    11
rem Initial Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    12
rem Nokia Corporation - initial contribution.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    13
rem
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    14
rem Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    15
rem
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    16
rem Description: 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    17
rem
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    18
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    19
setlocal
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    20
if not defined JAVA_6_HOME (
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    21
set TESTED_JAVA=C:\Apps\j2sdk_1.6.0_02
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    22
) ELSE  set TESTED_JAVA=%JAVA_6_HOME%
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    23
if exist %TESTED_JAVA% (set JAVA_HOME=%TESTED_JAVA%)
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    24
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    25
if not defined BUILDER_HOME (
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    26
    set BUILDER_HOME=%~dp0
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    27
)
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    28
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    29
set PATH=%JAVA_HOME%\bin;%PATH%
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    30
ant -lib %BUILDER_HOME%\antlibs %*
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    31
if "%ERRORLEVEL%" neq "0" (goto error)
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    32
endlocal
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    33
goto :eof
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    34
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    35
:error
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    36
endlocal
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    37
if "%OS%"=="Windows_NT" color 00