build.bat

来自「短信发送的例子」· Batch 代码 · 共 33 行

BAT
33
字号
@echo off

rem This batch file builds and preverifies the code for the demo.
rem it then packages it in a JAR file appropriately.

echo *** Creating directories ***
echo *** (this stage may produce already exist errors. Ignore them). ***

mkdir ..\tmpclasses
mkdir ..\classes

echo *** Compiling source files ***

javac -bootclasspath ..\..\..\lib\midpapi.zip -d ..\tmpclasses -classpath ..\..\..\lib\wma.zip;..\tmpclasses ..\src\example\sms\*.java ..\src\example\cbs\*.java

echo *** Preverifying class files ***

rem WARNING: When running under windows 9x the JAR may be incomplete
rem due to a bug in windows 98. Simply place a pause statement between
rem the preverify and JAR stages and wait 5 seconds before continuing
rem the build.

..\..\..\bin\preverify -classpath ..\..\..\lib\midpapi.zip;..\..\..\lib\wma.zip;..\tmpclasses -d ..\classes ..\tmpclasses

echo *** Jaring preverified class files ***
jar cmf MANIFEST.MF SMSDemo.jar -C ..\classes .

echo *** Jaring resource files ***
jar umf MANIFEST.MF SMSDemo.jar -C ..\res .

echo *** Don't forget to update the JAR file size in the JAD file ***

⌨️ 快捷键说明

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