donaldp     00/12/15 01:16:43

  Modified:    src/bin  ant.bat
  Log:
  Automagic detection of ANT_HOME for windows NT/2000
  
  Submitted by: "Vincent Bergbauer" <[EMAIL PROTECTED]> via Louis Tribble 
<[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.11      +15 -2     jakarta-ant/src/bin/ant.bat
  
  Index: ant.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/bin/ant.bat,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ant.bat   2000/12/05 13:30:28     1.10
  +++ ant.bat   2000/12/15 09:16:43     1.11
  @@ -1,6 +1,19 @@
  [EMAIL PROTECTED] off
  [EMAIL PROTECTED] off
  +
  +if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
  +
  +if not "%OS%"=="Windows_NT" goto start
  +
  +rem %~dp0 is name of current script under NT
  +set DEFAULT_ANT_HOME=%~dp0
  +
  +rem : operator works similar to make : operator
  +set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=%
  +
  +if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
  +set DEFAULT_ANT_HOME=
   
  -if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
  +:start
   
   rem Slurp the command line arguments.  This loop allows for an unlimited 
number of 
   rem agruments (up to the command line limit, anyway).
  
  
  

Reply via email to