tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject [New File] ant.bat
Date Sat, 25 Dec 1999 13:23:50 GMT

Below is an NT batch file driver for ant. It is roughly equivalent to the
ant shell script for Unix systems, except it looks for ant in NT appropriate
places. It should be placed in jakarta-tools\ant\src\bin. I don't know if
this works on Win 9x.


@echo off
if "%ANT_HOME%"=="" goto checkProgFiles
goto checkJavaHome

rem check for ant on system drive
if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive

set ANT_HOME=%SystemDrive%\Program Files\ant
goto checkJavaHome

if not exist "%SystemDrive%\ant" goto noAntHome
set ANT_HOME=%SystemDrive%\ant
goto checkJavaHome

echo ANT_HOME is not set and ant could not be located
goto end

if "%JAVA_HOME%" == "" goto runAnt

set CLASSPATH=%ANT_HOME%\lib\ant.jar;%ANT_HOME%\lib\xml.jar;%CLASSPATH%
java -Dant.home="%ANT_HOME%" %1 %2 %3 %4 %5 %6 %7
%8 %9


View raw message