summaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorConor MacNeill <conor@apache.org>2000-07-12 15:54:17 +0000
committerConor MacNeill <conor@apache.org>2000-07-12 15:54:17 +0000
commit0a5e88a59027a729d49c20481f8e0a3074820b70 (patch)
treece4cc996681d43941550279c0383bdce869edd90 /build.bat
parente7985a74cdbe0fd987de392da06777d4c9d50fb1 (diff)
downloadant-0a5e88a59027a729d49c20481f8e0a3074820b70.tar.gz
Rework the ant build process for NT/Windows
Change so that build.bat is used just to build ant itself. ant.bat should be used to run ant for other projects. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267770 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.bat')
-rwxr-xr-xbuild.bat24
1 files changed, 9 insertions, 15 deletions
diff --git a/build.bat b/build.bat
index 528a44886..ef064e27a 100755
--- a/build.bat
+++ b/build.bat
@@ -1,20 +1,14 @@
@echo off
-set _ANTHOME=%ANT_HOME%
-if "%ANT_HOME%" == "" set ANT_HOME=.
+set REALANTHOME=%ANT_HOME%
+set ANT_HOME=.
+if not exist lib\ant.jar call bootstrap.bat
-set LOCALCLASSPATH=%CLASSPATH%
-for %%i in (%ANT_HOME%\lib\*.jar) do call lcp.bat %%i
-if exist %JAVA_HOME%\lib\tools.jar call lcp.bat %JAVA_HOME%\lib\tools.jar
-if exist %JAVA_HOME%\lib\classes.zip call lcp.bat %JAVA_HOME%\lib\classes.zip
-
-echo.
-echo Building with classpath: %LOCALCLASSPATH%
-echo.
-
-java -Dant.home="%ANT_HOME%" -classpath "%LOCALCLASSPATH%" %ANT_OPTS% org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
+set ANT_INSTALL=
+if not "%REALANTHOME%" == "" set ANT_INSTALL=-Dant.install %REALANTHOME%
+call .\bin\ant %ANT_INSTALL% %1 %2 %3 %4 %5 %6 %7 %8 %9
rem clean up
-set LOCALCLASSPATH=
-set ANT_HOME=%_ANTHOME%
-set _ANTHOME=
+set ANT_HOME=%REALANTHOME%
+set REALANTHOME=
+set ANT_INSTALL=