文件结构组织如下所示:
------ear
| ---Communication.ear
------buildfile
| ---build.xml
| ---install_communication.jacl
------bin
| ---Install_EAR.bat
----ReadMe.txt
结构说明在Install_EAR.bat中调用ant命令,ant的脚本为build.xml,在ant脚本中引用install_communication.jacl,而在jacl脚本中引用ear目录下的Communication.ear,每次做更新的时候,仅需要更新Communication.ear即可。
ant 文件如下所示
<project name="INSTALL_EAR" default="all">
<target name="install_application">
<exec executable="wsadmin" vmlauncher="false">