build.cmd

来自「weblogic应用全实例」· CMD 代码 · 共 27 行

CMD
27
字号
@REM Copyright (c) 2000 BEA Systems, Inc. All Rights Reserved.
@REM You must set your environment by running the setExamplesEnv shell script 
@REM prior to executing this script.

@REM Create the build directory, and copy the deployment descriptors into it
mkdir build build\META-INF
copy *.xml build\META-INF

@REM Compile EJB classes into the build directory (jar preparation)
javac -d build Account.java AccountHome.java ProcessingErrorException.java AccountBean.java

@REM Make a EJB jar file, including XML deployment descriptors
cd build
jar cv0f std_ejb20_homemethods.jar META-INF examples
cd ..

@REM Run EJBC on jar file
java -classpath %WL_HOME%/lib/weblogic_sp.jar;%WL_HOME%/lib/weblogic.jar weblogic.ejbc -compiler javac build\std_ejb20_homemethods.jar %WL_HOME%\config\%DOMAIN_NAME%\applications\ejb20_homemethods.jar

@REM Compile servlets and EJB interfaces into WEB-INF/classes directory of the Examples Web App
@REM This ensures that the EJB can be accessed by JSPs and servlets of the Examples Web App
javac -d %EX_WEBAPP_CLASSES%  Account.java AccountHome.java ProcessingErrorException.java

@REM Compile EJB interfaces & client app into the clientclasses directory
javac -d %CLIENT_CLASSES% Account.java AccountHome.java ProcessingErrorException.java Client.java

⌨️ 快捷键说明

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