Browse Source

Use language neutral variable, %ProgramFiles%, to locate Program Files dir

PR:	17308
Submitted by:	Dennis M�ller


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274802 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
7ddc352a56
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/script/ant.bat

+ 3
- 3
src/script/ant.bat View File

@@ -31,9 +31,9 @@ rem find ANT_HOME if it does not exist due to either an invalid value passed
rem by the user or the %0 problem on Windows 9x
if exist "%ANT_HOME%\lib\ant.jar" goto checkJava

rem check for ant in Program Files on system drive
if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive
set ANT_HOME=%SystemDrive%\Program Files\ant
rem check for ant in Program Files
if not exist "%ProgramFiles%\ant" goto checkSystemDrive
set ANT_HOME=%ProgramFiles%\ant
goto checkJava

:checkSystemDrive


Loading…
Cancel
Save