Index: ant.bat
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/bin/ant.bat,v
retrieving revision 1.7
diff -u -r1.7 ant.bat
--- ant.bat	2000/09/06 14:17:19	1.7
+++ ant.bat	2000/10/17 18:55:02
@@ -1,5 +1,14 @@
 @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=
+
+:start
 rem Slurp the command line arguments.  This loop allows for an unlimited number of 
 rem agruments (up to the command line limit, anyway).
 
