Line | |
---|
1 | @echo off
|
---|
2 |
|
---|
3 | REM Copyright (c) 2000-2003 The Apache Software Foundation. All rights
|
---|
4 | REM reserved.
|
---|
5 |
|
---|
6 | set REAL_ANT_HOME=%ANT_HOME%
|
---|
7 | set ANT_HOME=%~dp0\bootstrap
|
---|
8 | if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
|
---|
9 | call bootstrap.bat
|
---|
10 | if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
|
---|
11 | echo Bootstrap FAILED
|
---|
12 | goto cleanup
|
---|
13 |
|
---|
14 | :runAnt
|
---|
15 | if not "%REAL_ANT_HOME%" == "" goto install_ant
|
---|
16 | call bootstrap\bin\ant.bat -lib lib/optional %1 %2 %3 %4 %5 %6 %7 %8 %9
|
---|
17 | goto cleanup
|
---|
18 |
|
---|
19 | :install_ant
|
---|
20 | call bootstrap\bin\ant.bat -lib lib/optional -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
---|
21 |
|
---|
22 | rem clean up
|
---|
23 | :cleanup
|
---|
24 | set ANT_HOME=%REAL_ANT_HOME%
|
---|
25 | set REAL_ANT_HOME=
|
---|
26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.