diff --git a/WHATSNEW b/WHATSNEW index 7cc643aaa..920b7c13b 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -238,6 +238,8 @@ Other changes: * can now chmod files on a remote server that supports "site chmod", as well as set the umask before transferring files, if the server supports "site umask". + +* New "optional" task. Changes from Ant 1.4 to Ant 1.4.1 =========================================== diff --git a/docs/manual/OptionalTasks/ejb.html b/docs/manual/OptionalTasks/ejb.html index 39d07dd44..409715658 100644 --- a/docs/manual/OptionalTasks/ejb.html +++ b/docs/manual/OptionalTasks/ejb.html @@ -62,6 +62,7 @@ In general these tasks are specific to the particular vendor's EJB Server.

blgenclientBorland Application Server 4.5 ddcreatorWeblogic 4.5.1 ejbcWeblogic 4.5.1 + ejbdeployEJB hot server deployment iplanet-ejbciPlanet Application Server 6.0 ejbjarNested Elements borlandBorland Application Server 4.5 diff --git a/docs/manual/OptionalTasks/ejbdeploy.html b/docs/manual/OptionalTasks/ejbdeploy.html new file mode 100644 index 000000000..d2b57c1c4 --- /dev/null +++ b/docs/manual/OptionalTasks/ejbdeploy.html @@ -0,0 +1,145 @@ + + + + +EjbDeploy Task + + + + + +

ejbdeploy

+

Description:

+ +

The ejbdeploy task is used to run a "hot" deployment tool for +vendor-specific J2EE server. The task runs the tool in a separate JVM. The +task requires nested elements which define the attributes of the +vendor-specific deployment tool being executed. +

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
actionThis is the action to be performed. For most cases this + will be "deploy". Some tools support additional actions, such as "delete", "list", + "undeploy", "update"...Yes
classpathThe classpath to be passed to the JVM running the tool. + The classpath may also be supplied as a nested element.No
serverUrlThe URL for the server where the component will be deployed.No
usernameThe user with privileges to deploy applications to the server.No
passwordThe password of the user with privileges to deploy + applications to the server.Yes
sourceA fully qualified path/filename of the component to be deployed. + This may be a EAR, JAR, WAR, or any other type that is supported by the server. + No
+ +

Nested Elements

+ +

The ejbdeploy task supports a nested <classpath> +element to set the classpath.

+ +

Vendor-specific nested elements

+ +

Also supported are nested vendor-specific elements.

+ +

WebLogic element

+

+The WebLogic element contains additional parameters to run the +weblogic.deploy deployment tool. +

Valid actions for the tool are deploy, undeploy, +list, update, and delete. +

If the action is deploy or update, +the application and source attributes must be set. +If the action is undeploy or delete, +the application attribute must be set. +

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
applicationThis is the name of the application being deployedYes
componentThis is the component string for deployment targets. + It is in the form <component>:<target1>,<target2>... + Where component is the archive name (minus the .jar, .ear, .war + extension). Targets are the servers where the components will be deployedYes
debugIf set to true, additional information will be + printed during the deployment process.No
+ + +

Examples

+ +

This example shows the use of ejbdeploy to deploy a component to a WebLogic server:

+ +
+    <ejbdeploy action="deploy"
+           serverUrl="t3://myserver:7001"
+           classpath="${classpath}"
+           username="${user.name}"
+           password="${user.password}"
+           source="${lib.dir}/ejb_myApp.ear">
+               <weblogic application="myapp"
+                   component="ejb_foobar:myserver,productionserver"
+                   debug="true"/>
+    </ejbdeploy>
+
+ +

This example shows ejbdeploy being used to delete a component from a +WebLogic server:

+ +
+    <ejbdeploy action="delete"
+           serverUrl="t3://myserver:7001"
+           classpath="${classpath}"
+           username="${user.name}"
+           password="${user.password}">
+               <weblogic application="myapp"/>
+    </ejbdeploy>
+
+
+

Copyright © 2002 Apache Software Foundation. All rights Reserved.

+ + diff --git a/src/main/org/apache/tools/ant/taskdefs/defaults.properties b/src/main/org/apache/tools/ant/taskdefs/defaults.properties index 5d36e3e52..9384085b2 100644 --- a/src/main/org/apache/tools/ant/taskdefs/defaults.properties +++ b/src/main/org/apache/tools/ant/taskdefs/defaults.properties @@ -151,6 +151,7 @@ soscheckout=org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout soslabel=org.apache.tools.ant.taskdefs.optional.sos.SOSLabel echoproperties=org.apache.tools.ant.taskdefs.optional.EchoProperties splash=org.apache.tools.ant.taskdefs.optional.splash.SplashTask +ejbdeploy=org.apache.tools.ant.taskdefs.optional.ejb.EjbDeploy # deprecated ant tasks (kept for back compatibility) starteam=org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut