Index: ServerDeploy.java =================================================================== RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java,v retrieving revision 1.5 diff -u -r1.5 ServerDeploy.java --- ServerDeploy.java 15 Apr 2002 13:36:20 -0000 1.5 +++ ServerDeploy.java 21 May 2002 18:44:46 -0000 @@ -123,6 +123,16 @@ vendorTools.addElement(tool); } + /** + * Creates a OC4J deployment tool, for deployment to Oracle OC4J servers. + *

Ant calls this method on creation to handle embedded "oc4j" elements + * in the ServerDeploy task. + * @param tool An instance of OC4JHotDeployment tool, passed in by Ant. + */ + public void addOc4j(OC4JHotDeploymentTool tool) { + tool.setTask(this); + vendorTools.addElement(tool); + } /////////////////////////////////////////////////////////////////////////// //