build.cmd

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

CMD
33
字号
@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 Converter.java ConverterHome.java ConverterResult.java ProcessingErrorException.java ConverterBean.java

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

@REM Run EJBC on jar file
java -classpath %WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%WL_HOME%\config\examples\serverclasses;%WL_HOME%\lib\wleorb.jar weblogic.ejbc -compiler javac build\std_wlec_ejb.jar %APPLICATIONS%\wlec_ejb.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% Converter.java ConverterHome.java ConverterResult.java ProcessingErrorException.java

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

@REM Creates jsp_servlet directory under WEB-INF\classes of the Examples Web App
@REM and places the compiled jsp classes into it
java weblogic.jspc -d %EX_WEBAPP_CLASSES% ejbSimpappServlet.jsp

@REM Copy the .jsp and html files into Examples Web App  
copy ejbSimpappServlet.jsp %APPLICATIONS%\examplesWebApp
copy ejbSimpapp.html %APPLICATIONS%\examplesWebApp 

⌨️ 快捷键说明

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