build.bat

来自「OpenJMS是一个开源的Java Message Service API 1.」· Batch 代码 · 共 58 行

BAT
58
字号
@echo offrem ---------------------------------------------------------------------------rem Build script for the OpenJMS examplesremrem Required Environment Variablesremrem   JAVA_HOME       Points to the Java Development Kit installation.remrem Optional Environment Variablesrem rem   OPENJMS_HOME    Points to the OpenJMS installation directory.remrem $Id: build.bat,v 1.1 2004/11/26 02:59:08 tanderson Exp $rem ---------------------------------------------------------------------------if "%OS%" == "Windows_NT" setlocalif not "%JAVA_HOME%" == "" goto gotJavaHomeecho The JAVA_HOME environment variable is not set.echo This is required to build the examples.exit /B 1:gotJavaHomeif exist "%JAVA_HOME%\bin\javac.exe" goto okJavaHomeecho The JAVA_HOME environment variable is not set correctly.echo This is required to build the examples.exit /B 1:okJavaHomeset _RUNJAVAC="%JAVA_HOME%\bin\javac.exe"rem Guess OPENJMS_HOME if it is not setif not "%OPENJMS_HOME%" == "" goto gotOpenJMSHomeset OPENJMS_HOME=..\..if exist "%OPENJMS_HOME%\lib\@OPENJMS@" goto okOpenJMSHomeecho The OPENJMS_HOME variable is not set.echo This is required to build the examples.exit /B 1:gotOpenJMSHomeif exist "%OPENJMS_HOME%\lib\@OPENJMS@" goto okOpenJMSHomeecho The OPENJMS_HOME variable is not set correctly.echo This is required to build the examples.exit /B 1:okOpenJMSHomeset CLASSPATH=%OPENJMS_HOME%\lib\@OPENJMS@;%OPENJMS_HOME%\lib\@JMS@;%OPENJMS_HOME%\lib\@JNDI@echo Using OPENJMS_HOME: %OPENJMS_HOME%echo Using JAVA_HOME:    %JAVA_HOME%echo Using CLASSPATH:    %CLASSPATH%%_RUNJAVAC% -g -classpath "%CLASSPATH%" *.java

⌨️ 快捷键说明

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