Ant启动weblogic
<target name=”startWebLogic” description=”starts a WebLogic”><if>
<equals arg1=”${os.name}” arg2=”Linux”/>//判断操作系统类型
<then>
<exec dir=”${bea.home}/user_projects/domains/${weblogic.domain}” executable=”${bea.home}/user_projects/domains/${weblogic.domain}/startWebLogic.sh”/>
</then>
<else>
<exec dir=”${bea.home}/user_projects/domains/${weblogic.domain}” executable=”${bea.home}/user_projects/domains/${weblogic.domain}/startWebLogic.cmd”/>
</else>
</if>
</target>
来自我的小站 www.threes.cn
本文介绍了一种根据操作系统类型(Linux或其它)来启动WebLogic服务器的方法。通过Ant脚本中的条件判断,选择执行相应的启动脚本(startWebLogic.sh或startWebLogic.cmd),确保WebLogic服务器可以在不同操作系统环境下正确启动。
176

被折叠的 条评论
为什么被折叠?



