⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ant.bat

📁 sun公司的petstore,一个J2ee的示例应用程序.
💻 BAT
字号:
@echo offREMREM Copyright 2002 Sun Microsystems, Inc. All rights reserved.REM REM Redistribution and use in source and binary forms, with or withoutREM modification, are permitted provided that the following conditionsREM are met:REM REM - Redistributions of source code must retain the above copyrightREM   notice, this list of conditions and the following disclaimer.REM REM - Redistribution in binary form must reproduce the above copyrightREM   notice, this list of conditions and the following disclaimer inREM   the documentation and/or other materials provided with theREM   distribution.REM REM Neither the name of Sun Microsystems, Inc. or the names ofREM contributors may be used to endorse or promote products derivedREM from this software without specific prior written permission.REM REM This software is provided "AS IS," without a warranty of anyREM kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS ANDREM WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,REM FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBYREM EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGESREM SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING ORREM DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUNREM OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, ORREM FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL ORREM PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OFREM LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,REM EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.REM REM You acknowledge that Software is not designed, licensed or intendedREM for use in the design, construction, operation or maintenance ofREM any nuclear facility.REMif exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"if not "%OS%"=="Windows_NT" goto win9xStart:winNTStart@setlocalrem %~dp0 is name of current script under NTset DEFAULT_ANT_HOME=%~dp0rem : operator works similar to make : operatorset DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=%if %ANT_HOME%a==a set ANT_HOME=%DEFAULT_ANT_HOME%set DEFAULT_ANT_HOME=rem On NT/2K grab all arguments at onceset ANT_CMD_LINE_ARGS=%*goto doneStart:win9xStartrem Slurp the command line arguments.  This loop allows for an unlimited number of rem agruments (up to the command line limit, anyway).set ANT_CMD_LINE_ARGS=:setupArgsif %1a==a goto doneStartset ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1shiftgoto setupArgs:doneStartrem This label provides a place for the argument list loop to break out rem and for NT handling to skip to.rem find ANT_HOMEif not "%ANT_HOME%"=="" goto checkJavarem check for ant in Program Files on system driveif not exist "%SystemDrive%\Program Files\ant" goto checkSystemDriveset ANT_HOME=%SystemDrive%\Program Files\antgoto checkJava:checkSystemDriverem check for ant in root directory of system driveif not exist "%SystemDrive%\ant" goto noAntHomeset ANT_HOME=%SystemDrive%\antgoto checkJava:noAntHomeecho ANT_HOME is not set and ant could not be located. Please set ANT_HOME.goto end:checkJavaset _JAVACMD=%JAVACMD%set LOCALCLASSPATH=%CLASSPATH%for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i"if "%JAVA_HOME%" == "" goto noJavaHomeif "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\javaif exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" "%JAVA_HOME%\lib\tools.jar"if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" "%JAVA_HOME%\lib\classes.zip"goto checkJikes:noJavaHomeif "%_JAVACMD%" == "" set _JAVACMD=javaecho.echo Warning: JAVA_HOME environment variable is not set.echo   If build fails because sun.* classes could not be foundecho   you will need to set the JAVA_HOME environment variableecho   to the installation directory of java.echo.:checkJikesif not "%JIKESPATH%" == "" goto runAntWithJikes:runAnt%_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%goto end:runAntWithJikes%_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" -Djikes.class.path=%JIKESPATH% %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%:endset LOCALCLASSPATH=set _JAVACMD=set ANT_CMD_LINE_ARGS=if not "%OS%"=="Windows_NT" goto mainEnd:winNTend@endlocal:mainEndif exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -