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
本文介绍了一种使用Ant脚本来启动WebLogic服务器的方法。该方法通过条件判断来选择合适的启动脚本,确保在不同操作系统(如Linux或Windows)上都能正确运行WebLogic服务器。

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



