The undeploy
task supports undeployment of a single application from the Liberty Profile server.
Parameters supported by this task in addition to the common parameters.
Attribute | Description | Required |
---|---|---|
file | Name of the application to be undeployed. The application type can be war, ear, rar, eba, zip , or jar. | No |
patternset | Includes and excludes patterns of applications to be undeployed. See patternset attribute in Apache Ant. | No |
timeout | Waiting time before the undeployment completes successfully. The default value is 30 seconds. The unit is milliseconds. | No |
When file
has been set the patternset
parameter will be ignored, also when the file
and patternset
parameters are not set the task will undeploy all the deployed applications.
- Undeploy the
myapp.war
application.
<wlp:undeploy ref="wlp.ant.test" file="myapp.war" timeout="60000"/>
- Undeploy all the applications with the
.war
extension except theexample.war
file.
<patternset id="mypattern">
<include name="**/*.war"/>
<exclude name="example.war"/>
</patternset>
<wlp:undeploy ref="wlp.ant.test" timeout="20000">
<patternset refid="mypattern"/>
</wlp:undeploy>
- Undeploy all the applications previously deployed on the server.
<wlp:undeploy ref="wlp.ant.test" timeout="60000"/>