Ant task - undeploy

The undeploy task can be used to remove applications from a Liberty server.

Description

The undeploy task supports undeployment of a single application from the Liberty server.

Attributes

The following table describes attributes of the undeploy task.

Table 1. The attributes of the undeploy task.

The first column contains a list of attributes, the second column contains a description of each attribute, and the third column represents whether this attribute is required.

Attribute Description Required
installDir Location of the Liberty server. Yes
serverName Name of the Liberty server instance. The default value is defaultServer. No
userDir Value of the ${wlp_user_dir} variable. The default value is ${installDir}/usr/servers/${serverName}. No
outputDir Value of the ${wlp_output_dir} variable. The default value is ${installDir}/usr/servers/${serverName}. No
file Name of application to be removed. The application type can be war, eba, zip, rar, or jar. Yes
timeout Waiting time before the undeployment completes successfully. The default value is 30 seconds. The unit is milliseconds. 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

This example shows how to use the undeploy task in your build.xml file:
    <wlp:undeploy ref="wlp.ant.test" file="SimpleOSGiApp.eba" timeout="60000" />

Icon that indicates the type of topic Reference topic



Timestamp icon Last updated: Monday, 5 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-libcore-mp&topic=rwlp_ant_undeploy
File name: rwlp_ant_undeploy.html