text
stringlengths 0
834k
|
|---|
rem This label provides a place for the argument list loop to break out
|
rem and for NT handling to skip to.
|
:doneStart
|
if ""%_USE_CLASSPATH%""==""no"" goto findAntHome
|
:stripClasspath
|
if not _%CLASSPATH:~-1%==_\ goto findAntHome
|
set CLASSPATH=%CLASSPATH:~0,-1%
|
goto stripClasspath
|
:findAntHome
|
rem find ANT_HOME if it does not exist due to either an invalid value passed
|
rem by the user or the %0 problem on Windows 9x
|
if exist ""%ANT_HOME%\lib\ant.jar"" goto checkJava
|
rem check for ant in Program Files
|
if not exist ""%ProgramFiles%\ant"" goto checkSystemDrive
|
set ANT_HOME=%ProgramFiles%\ant
|
goto checkJava
|
:checkSystemDrive
|
rem check for ant in root directory of system drive
|
if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
|
set ANT_HOME=%SystemDrive%\ant
|
goto checkJava
|
:checkCDrive
|
rem check for ant in C:\ant for Win9X users
|
if not exist C:\ant\lib\ant.jar goto noAntHome
|
set ANT_HOME=C:\ant
|
goto checkJava
|
:noAntHome
|
echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
|
goto end
|
:checkJava
|
set _JAVACMD=%JAVACMD%
|
if ""%JAVA_HOME%"" == """" goto noJavaHome
|
if not exist ""%JAVA_HOME%\bin\java.exe"" goto noJavaHome
|
if ""%_JAVACMD%"" == """" set _JAVACMD=%JAVA_HOME%\bin\java.exe
|
goto checkJikes
|
:noJavaHome
|
if ""%_JAVACMD%"" == """" set _JAVACMD=java.exe
|
:checkJikes
|
if not ""%JIKESPATH%""=="""" goto runAntWithJikes
|
:runAnt
|
if ""%_USE_CLASSPATH%""==""no"" goto runAntNoClasspath
|
:runAntWithClasspath
|
""%_JAVACMD%"" %ANT_OPTS% -classpath ""%ANT_HOME%\lib\ant-launcher.jar"" ""-Dant.home=%ANT_HOME%"" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp ""%CLASSPATH%"" %ANT_CMD_LINE_ARGS%
|
rem Check the error code of the Ant build
|
if not ""%OS%""==""Windows_NT"" goto onError
|
set ANT_ERROR=%ERRORLEVEL%
|
goto end
|
:runAntNoClasspath
|
""%_JAVACMD%"" %ANT_OPTS% -classpath ""%ANT_HOME%\lib\ant-launcher.jar"" ""-Dant.home=%ANT_HOME%"" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
|
rem Check the error code of the Ant build
|
if not ""%OS%""==""Windows_NT"" goto onError
|
set ANT_ERROR=%ERRORLEVEL%
|
goto end
|
:runAntWithJikes
|
if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath
|
set JIKESPATH=%JIKESPATH:~0,-1%
|
goto runAntWithJikes
|
:checkJikesAndClasspath
|
if ""%_USE_CLASSPATH%""==""no"" goto runAntWithJikesNoClasspath
|
:runAntWithJikesAndClasspath
|
""%_JAVACMD%"" %ANT_OPTS% -classpath ""%ANT_HOME%\lib\ant-launcher.jar"" ""-Dant.home=%ANT_HOME%"" ""-Djikes.class.path=%JIKESPATH%"" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp ""%CLASSPATH%"" %ANT_CMD_LINE_ARGS%
|
rem Check the error code of the Ant build
|
if not ""%OS%""==""Windows_NT"" goto onError
|
set ANT_ERROR=%ERRORLEVEL%
|
goto end
|
:runAntWithJikesNoClasspath
|
""%_JAVACMD%"" %ANT_OPTS% -classpath ""%ANT_HOME%\lib\ant-launcher.jar"" ""-Dant.home=%ANT_HOME%"" ""-Djikes.class.path=%JIKESPATH%"" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
|
rem Check the error code of the Ant build
|
if not ""%OS%""==""Windows_NT"" goto onError
|
set ANT_ERROR=%ERRORLEVEL%
|
goto end
|
:onError
|
rem Windows 9x way of checking the error code. It matches via brute force.
|
for %%i in (1 10 100) do set err%%i=
|
for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i
|
if %err100%==2 goto onError200
|
if %err100%==0 set err100=
|
for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i
|
if ""%err100%""=="""" if %err10%==0 set err10=
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.