WAS v8.5 > Reference > Command-line utilitiesLiberty profile: Ant task - deploy
The deploy Ant task supports deployment of one or more applications to the Liberty profile server.
Attributes
Attribute Description Required installDir Location of the Liberty profile server. Yes serverName Name of the Liberty profile server instance. Default is defaultServer. No userDir Value of the ${wlp_user_dir} variable. Default is ${installDir}/user/servers/${serverName}. No outputDir Value of the ${wlp_output_dir} variable. Default is ${installDir}/user/servers/${serverName}. No file Location of a single application to be deployed. The application type can be war, eba, zip, rar , or jar. Yes, only when the fileset attribute is not specified. fileset Location of multiple applications to be deployed. See fileset attribute in Apache Ant. Yes, only when the file attribute is not specified. timeout Waiting time before the deployment completes successfully. Default is 30 seconds. The unit is millisecond. No ref Reference to an existing server task definition to reuse its server configuration. The value can be null when other required attributes are set. No
Example
To use the deploy task in your build.xml file:
<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"/>
Parent topic: Use Ant to automate tasks for the Liberty profile
|