ANT Undeploy Task  Locate

ANT UndeployTask Overview  Locate

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]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 NameTask Class
UndeployTaskcom.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>

Required Attributes of UndeployTask  Locate

Attribute NameDescriptionCommand-line Option
jarfileSets the name of the service JAR file 
Or, alternatively:
packageSets the name of the service package when undeploying--package

Optional Attributes of DeployTask  Locate

Attribute NameDescriptionCommand-line Option
classPathRefSets a reference to the classpath element.--classpath
targetSets the URL of the WSO2 SOA Enablement Server that will host the service.--target
contextSets the context of the package.--context
forceSets forced undeployment when redeploying.--force
securityProviderSets the security provider.--security-provider
usernameSets the username that is used for authentication. --username
passwordSets the password that is used for authentication.--password