217
|
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 |
if not defined JAVA_6_HOME (
|
|
21 |
set TESTED_JAVA=C:\Apps\j2sdk_1.6.0_02
|
|
22 |
) ELSE set TESTED_JAVA=%JAVA_6_HOME%
|
|
23 |
if exist %TESTED_JAVA% (set JAVA_HOME=%TESTED_JAVA%)
|
|
24 |
|
|
25 |
if not defined BUILDER_HOME (
|
|
26 |
set BUILDER_HOME=%~dp0
|
|
27 |
)
|
|
28 |
|
|
29 |
set PATH=%JAVA_HOME%\bin;%PATH%
|
|
30 |
ant -lib %BUILDER_HOME%\antlibs %*
|
|
31 |
if "%ERRORLEVEL%" neq "0" (goto error)
|
|
32 |
endlocal
|
|
33 |
goto :eof
|
|
34 |
|
|
35 |
:error
|
|
36 |
endlocal
|
|
37 |
if "%OS%"=="Windows_NT" color 00
|