Index: ant.bat
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/bin/ant.bat,v
retrieving revision 1.8
diff -u -r1.8 ant.bat
--- ant.bat	2000/10/18 13:36:14	1.8
+++ ant.bat	2000/10/24 15:31:58
@@ -1,5 +1,13 @@
 @echo off
 
+rem When using Windows NT (or W2K), the path of the batch file
+rem (and therefore ANT_HOME) can be determined.
+if not "%OS%"=="Windows_NT" goto start
+set DEFAULT_ANT_HOME=%~dp0
+set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=%
+if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
+set DEFAULT_ANT_HOME=
+
 rem Slurp the command line arguments.  This loop allows for an unlimited number of 
 rem agruments (up to the command line limit, anyway).
 
