Download Apache Ant 1.5.4 Manual

Transcript
Ant Manual 1.5.4
12/9/2003 7:47 PM
Vendor-specific nested elements
Parameters used for all tools:
Attribute Description
Required
classpath The classpath to be passed to the JVM running the tool. The classpath may
also be supplied as a nested element.
Tool
dependant
server
Tool
dependant
The address or URL for the server where the component will be deployed.
username The user with privileges to deploy applications to the server.
Tool
dependant
password The password of the user with privileges to deploy applications to the server. Tool
dependant
Also supported are nested vendor-specific elements.
10.36.2 Generic element
This element is provided for generic Java-based deployment tools. The generic task accepts
(but does not require) nested arg and jvmarg elements. A JVM will be spawned with the
provided attributes. It is recommended that a vendor-specific element be used over the
generic one if at all possible.
The following attributes are supported by the generic element.
Attribute Description
classname This is the fully qualified classname of the Java based deployment tool to
execute.
Required
Yes
Nested Elements
The generic element supports nested <arg> and <jvmarg> elements.
Example
This example shows the use of generic deploy element to deploy a component using a Java
based deploy tool:
<serverdeploy action="deploy" source="${lib.dir}/ejb_myApp.ear">
<generic classname="com.yamato.j2ee.tools.deploy.DeployTool"
classpath="${classpath}"
username="${user.name}"
password="${user.password}">
<arg value="-component=WildStar"/>
<arg value="-force"/>
<jvmarg value="-ms64m"/>
<jvmarg value="-mx128m"/>
</generic>
</serverdeploy>
10.36.3 WebLogic element
The WebLogic element contains additional attributes to run the weblogic.deploy deployment
tool.
Valid actions for the tool are deploy, undeploy, list, update, and delete.
261/305