source: gs3-extensions/selfcontained-ant/trunk/SETUP.bat@ 37527

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
3setlocal
4
5set package_name=Apache Ant
6set ant_dir=apache-ant
7
8set full_ant_dir=%CD%\%ant_dir%
9
10set OS_ALLCAPS=WINDOWS
11
12if 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
23set ANT_HOME=%full_ant_dir%
24set "PATH=%ANT_HOME%\bin;%PATH%"
25
26REM For details on setting multiple vars, see:
27REM https://stackoverflow.com/questions/15494688/batch-script-make-setlocal-variable-accessed-by-other-batch-files
28
29endlocal & (
30 set ANT_HOME=%ANT_HOME%
31 set "PATH=%PATH%"
32)
33
34echo + Set ANT_HOME and updated PATH
35
Note: See TracBrowser for help on using the repository browser.