Ant 任务 - 部署

deploy 任务可用来将应用程序安装在 Liberty 概要文件服务器上。

描述

deploy 任务支持将一个或多个应用程序部署到 Liberty 概要文件服务器。

属性

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

表 1. deploy 任务的属性.

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

属性 描述 必需
installDir Liberty 概要文件服务器的位置。
serverName Liberty 概要文件服务器实例的名称。缺省值为 defaultServer
userDir ${wlp_user_dir} 变量的值。缺省值为 ${installDir}/usr/servers/${serverName}
outputDir ${wlp_output_dir} 变量的值。缺省值为 ${installDir}/usr/servers/${serverName}
file 要部署的单个应用程序的位置。请参阅 Apache Ant 中的 file 属性。应用程序类型可为 warearrarebazipjar 是,仅当未指定 fileset 属性时。
fileset 要部署的多个应用程序的位置。请参阅 Apache Ant 中的 fileset 属性 是,仅当未指定 file 属性时。
timeout 部署成功完成之前的等待时间。缺省值为 30 秒。单位是毫秒。
ref 引用现有服务器任务定义以复用其服务器配置。如果设置了其他必需属性,那么此值可以为空。

示例

此示例说明如何在 build.xml 文件中使用 deploy 任务:
    <wlp:deploy ref="wlp.ant.test" >
       <fileset dir="${basedir}/resources/">
             <include name="**/*.war"/>
       </fileset>
  </wlp:deploy>
  <wlp:deploy ref="wlp.ant.test" file="${basedir}/resources/SimpleOSGiApp.eba"  timeout="40000"/>

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

信息中心的条款和条件 | 反馈


时间戳记图标 最近一次更新时间: Wednesday, 2 September 2015
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=rwlp_ant_deploy
文件名:rwlp_ant_deploy.html