Liberty:Ant 任务 - 取消部署

undeploy 任务可用来将应用程序从 Liberty 服务器移除。

描述

undeploy 任务支持将单个应用程序从 Liberty 服务器取消部署。

属性

下表描述了 undeploy 任务的属性。

表 1. undeploy 任务的属性.

第一列包含属性列表,第二列包含每个属性的描述,而第三列表示此属性是否是必需的。

属性 描述 必需
installDir Liberty 服务器的位置。
serverName Liberty 服务器实例的名称。缺省值为 defaultServer
userDir ${wlp_user_dir} 变量的值。缺省值为 ${installDir}/usr/servers/${serverName}
outputDir ${wlp_output_dir} 变量的值。缺省值为 ${installDir}/usr/servers/${serverName}
file 要移除的应用程序的名称。应用程序类型可以是 warebaziprarjar
timeout 取消部署成功完成之前的等待时间。缺省值为 30 秒。单位是毫秒。
ref 引用现有服务器任务定义以复用其服务器配置。如果设置了其他必需属性,那么此值可以为空。

示例

此示例说明如何在 build.xml 文件中使用 undeploy 任务:
    <wlp:undeploy ref="wlp.ant.test" file="SimpleOSGiApp.eba" timeout="60000" />

用于指示主题类型的图标 参考主题



时间戳记图标 最近一次更新时间: Tuesday, 6 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rwlp_ant_undeploy
文件名:rwlp_ant_undeploy.html