build.cmd

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

CMD
34
字号
@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 Teller.java TellerHome.java TellerException.java TellerResult.java TellerBean.java

@REM Compile Account EJB classes into the build directory (jar preparation)
cd ..\account
javac -d d:/samples/end/cluster/ejb/teller/build Account.java AccountHome.java AccountPK.java AccountResult.java AccountException.java 
cd ..\teller

@REM Make a EJB jar file, including XML deployment descriptors
cd build
jar cv0f std_cluster_ejb_teller.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_cluster_ejb_teller.jar %APPLICATIONS%\cluster_ejb_teller.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%  Teller.java TellerHome.java TellerException.java TellerResult.java

@REM Compile EJB interfaces & client app into the clientclasses directory
javac -d %CLIENT_CLASSES% Teller.java TellerHome.java TellerException.java TellerResult.java 

cd ..
javac -d %CLIENT_CLASSES% Client.java

⌨️ 快捷键说明

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