The Undeploy ANT Task is for launching the Undeploy command-line tool in Apache ANT. Undeploy remotely undeploys Web services. More details on this tool are given in Undeploy.
![]() | Note |
|---|---|
Examples You can find usage examples of ANT tasks in WASP_HOME/src/example/tools/ant and in the build.xml files in Demos. See also Example 219. | |
| Task Name | Task Class |
|---|---|
| UndeployTask | com.idoox.wasp.tools.ant.UndeployTask |
Example 219. Undeploy ANT Task
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="main" name="test">
<taskdef classname="com.idoox.wasp.tools.ant.UndeployTask"
name="Undeploy"/>
<target name="main">
<!-- Undeploying of the package by the package QName -->
<Undeploy Force="true" Package="http://my.org:MyPackage""
Target="http://localhost:6060"/>
<!-- ... or undeploying the package by the JAR file -->
<Undeploy Jarfile="mypackage.jar" Target="http://localhost:6060"/>
</target>
</project>
| Attribute Name | Description | Command-line Option |
|---|---|---|
| classPathRef | Sets a reference to the classpath element. | --classpath |
| target | Sets the URL of the WSO2 SOA Enablement Server that will host the service. | --target |
| context | Sets the context of the package. | --context |
| force | Sets forced undeployment when redeploying. | --force |
| securityProvider | Sets the security provider. | --security-provider |
| username | Sets the username that is used for authentication. | --username |
| password | Sets the password that is used for authentication. | --password |