Last change
on this file since 37527 was 37527, checked in by davidb, 14 months ago |
Changes after developing and testing selfcontained-ant
|
-
Property svn:executable
set to
*
|
File size:
730 bytes
|
Line | |
---|
1 | @echo off
|
---|
2 |
|
---|
3 | setlocal
|
---|
4 |
|
---|
5 | set package_name=Apache Ant
|
---|
6 | set ant_dir=apache-ant
|
---|
7 |
|
---|
8 | set full_ant_dir=%CD%\%ant_dir%
|
---|
9 |
|
---|
10 | set OS_ALLCAPS=WINDOWS
|
---|
11 |
|
---|
12 | if not exist %full_ant_dir% (
|
---|
13 | echo. >&2
|
---|
14 | echo In seting up %package_name%, did not find directory: >&2
|
---|
15 | echo %full_ant_dir% >&2
|
---|
16 | echo. >&2
|
---|
17 | echo Have you run ./PREPARE-%OS_ALLCAPS%.bat? >&2
|
---|
18 | echo Exiting... >&2
|
---|
19 | echo. >&2
|
---|
20 | exit /b 0
|
---|
21 | )
|
---|
22 |
|
---|
23 | set ANT_HOME=%full_ant_dir%
|
---|
24 | set "PATH=%ANT_HOME%\bin;%PATH%"
|
---|
25 |
|
---|
26 | REM For details on setting multiple vars, see:
|
---|
27 | REM https://stackoverflow.com/questions/15494688/batch-script-make-setlocal-variable-accessed-by-other-batch-files
|
---|
28 |
|
---|
29 | endlocal & (
|
---|
30 | set ANT_HOME=%ANT_HOME%
|
---|
31 | set "PATH=%PATH%"
|
---|
32 | )
|
---|
33 |
|
---|
34 | echo + Set ANT_HOME and updated PATH
|
---|
35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.