1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
@echo off
REM ======================================================================
REM
REM This is the main entry point for the build system.
REM
REM Users should be sure to execute this file rather than 'ant' to ensure
REM the correct version is being used with the correct configuration.
REM
REM ======================================================================
REM
REM $Id: build.bat 314 2005-10-04 02:04:56Z telrod $
REM
REM Authors:
REM Jason Dillon <jason@planet57.com>
REM Sacha Labourey <sacha.labourey@cogito-info.ch>
REM
REM ******************************************************
REM Ignore the ANT_HOME variable: we want to use *our*
REM ANT version and associated JARs.
REM ******************************************************
REM Ignore the users classpath, cause it might mess
REM things up
REM ******************************************************
SETLOCAL
set CLASSPATH=
set ANT_HOME=
set ANT_OPTS=-Xmx512m -Dbuild.script=build.bat
REM ******************************************************
REM - "for" loops have been unrolled for compatibility
REM with some WIN32 systems.
REM ******************************************************
set NAMES=tools;tools\ant;tools\apache\ant
set SUBFOLDERS=..;..\..;..\..\..;..\..\..\..
REM ******************************************************
REM ******************************************************
SET EXECUTED=FALSE
for %%i in (%NAMES%) do call :subLoop %%i %*
goto :EOF
REM ******************************************************
REM ********* Search for names in the subfolders *********
REM ******************************************************
:subLoop
SET SUBDIR=%1
SHIFT
set OTHER_ARGS=
:setupArgs
if %1a==a goto doneSetupArgs
set OTHER_ARGS=%OTHER_ARGS% %1
shift
goto setupArgs
:doneSetupArgs
for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%SUBDIR%\bin\ant.bat %OTHER_ARGS%
goto :EOF
REM ******************************************************
REM ************ Test if ANT Batch file exists ***********
REM ******************************************************
:testIfExists
if exist %1 call :BatchFound %*
goto :EOF
REM ******************************************************
REM ************** Batch file has been found *************
REM ******************************************************
:BatchFound
if (%EXECUTED%)==(FALSE) call :ExecuteBatch %*
set EXECUTED=TRUE
goto :EOF
REM ******************************************************
REM ************* Execute Batch file only once ***********
REM ******************************************************
:ExecuteBatch
echo Calling %*
call %*
:end
if "%NOPAUSE%" == "" pause
|