![]()
|
ANT ServerDeploy User Manualby
At present the tasks support:
ServerDeploy elementDescription:The Parameters:
Nested ElementsThe serverdeploy task supports a nested Vendor-specific nested elementsParameters used for all tools:
Also supported are nested vendor-specific elements. Generic elementThis element is provided for generic Java-based deployment tools. The generic task accepts (but does not require) nestedarg
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.
Nested ElementsThe generic element supports nested <arg> and <jvmarg> elements. ExampleThis 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> WebLogic element
The WebLogic element contains additional attributes to run the
Valid actions for the tool are If the action is
ExamplesThis example shows the use of serverdeploy to deploy a component to a WebLogic server: <serverdeploy action="deploy" source="${lib.dir}/ejb_myApp.ear"> <weblogic application="myapp" server="t3://myserver:7001" classpath="${weblogic.home}/lib/weblogic.jar" username="${user.name}" password="${user.password}" component="ejb_foobar:myserver,productionserver" debug="true"/> </serverdeploy> This example shows serverdeploy being used to delete a component from a WebLogic server: <serverdeploy action="delete" source="${lib.dir}/ejb_myApp.jar"/> <weblogic application="myapp" server="t3://myserver:7001" classpath="${weblogic.home}/lib/weblogic.jar" username="${user.name}" password="${user.password}"/> </serverdeploy> JOnAS (Java Open Applicaton Server) element
The JOnAS element contains additional attributes to run the
Valid actions for the tool are You can't use
Nested ElementsThe jonas element supports nested <arg> and <jvmarg> elements. ExamplesThis example shows the use of serverdeploy to deploy a component to a JOnAS server: <serverdeploy action="deploy" source="${lib.dir}/ejb_myApp.jar"> <jonas server="MyJOnAS" jonasroot="${jonas.root}"> <classpath> <pathelement path="${jonas.root}/lib/RMI_jonas.jar"/> <pathelement path="${jonas.root}/config/"/> </classpath> </jonas> </serverdeploy> This example shows serverdeploy being used to list the components from a JOnAS server and a WebLogic server: <serverdeploy action="list"/> <jonas jonasroot="${jonas.root}" orb="JEREMIE"/> <weblogic application="myapp" server="t3://myserver:7001" classpath="${weblogic.home}/lib/weblogic.jar" username="${user.name}" password="${user.password}"/> </serverdeploy> Copyright © 2002 Apache Software Foundation. All rights Reserved. |