📄 build.cmd
字号:
@REM Copyright (c) 2000 BEA Systems, Inc. All Rights Reserved.
@REM You must set your environment by running the setExamplesEnv script
@REM prior to executing this script.
@REM Adjust these variables to match your environment
set VISIBROKER_HOME=c:\Inprise\vbroker
set IDL2CPP=%VISIBROKER_HOME%\bin\idl2cpp -no_servant -idl_strict
@REM Create the build directory, and copy the deployment descriptors into it
mkdir build build\META-INF build\images cpp\javax cpp\javax\ejb
copy *.xml build\META-INF
copy *.gif build\images
@REM Compile ejb classes into the build directory (jar preparation)
javac -d build MyBean.java MyBeanHome.java MyBeanImpl.java
@REM Make a standard ejb jar file, including XML deployment descriptors
cd build
jar cv0f std_simple_ejb_idl.jar META-INF examples images
cd ..
@REM Run ejbc to create the deployable jar file
java weblogic.ejbc -compiler javac -idl -idlNoValueTypes -idlOverwrite -idlDirectory idlSources -iiop build\std_simple_ejb_idl.jar %APPLICATIONS%\simple_ejb_idl.jar
@REM Run idl2cpp to create C++ sources
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir . idlSources\examples\rmi_iiop\ejb\simplified_idl\MyBean.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir . idlSources\examples\rmi_iiop\ejb\simplified_idl\MyBeanHome.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir cpp\javax\ejb idlSources\javax\ejb\EJBObject.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir cpp\javax\ejb idlSources\javax\ejb\EJBHome.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir cpp\javax\ejb idlSources\javax\ejb\RemoveEx.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir cpp\javax\ejb idlSources\javax\ejb\CreateEx.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir cpp\java\lang idlSources\java\lang\_Object.idl
%IDL2CPP% -I%VISIBROKER_HOME%\idl -IidlSources -namespace -Iidl -src_suffix cpp -root_dir cpp\java\rmi idlSources\java\rmi\Remote.idl
@REM Compile the C++ stubs and client file
CL /MD /DTHREAD /nologo -DWIN32 /GX /DSTRICT /DALIGNED /DVISIBROKER /DMSVCUSING_BUG /DMSVCNESTEDUSING_BUG -Icpp -I%VISIBROKER_HOME%\include -I%VISIBROKER_HOME%\include\stubs -I%WL_HOME%\samples -c MyBean_c.cpp MyBeanHome_c.cpp cpp\Client.cpp cpp\javax\ejb\EJBObject_c.cpp cpp\javax\ejb\EJBHome_c.cpp cpp\javax\ejb\RemoveEx_c.cpp cpp\java\lang\_Object_c.cpp cpp\java\rmi\Remote_c.cpp
@REM Generate the client executable
LINK /nologo /out:Client.exe /LIBPATH:%VISIBROKER_HOME%\lib MyBean_c.obj MyBeanHome_c.obj EJBObject_c.obj EJBHome_c.obj RemoveEx_c.obj _Object_c.obj Remote_c.obj Client.obj
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -