ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/j2ee ServerDeploy.java
Date Wed, 27 Mar 2002 16:46:41 GMT
bodewig     02/03/27 08:46:41

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/j2ee
                        ServerDeploy.java
  Log:
  JDK 1.1
  
  Revision  Changes    Path
  1.2       +8 -7      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java
  
  Index: ServerDeploy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServerDeploy.java	27 Mar 2002 14:32:19 -0000	1.1
  +++ ServerDeploy.java	27 Mar 2002 16:46:41 -0000	1.2
  @@ -55,8 +55,8 @@
   package org.apache.tools.ant.taskdefs.optional.j2ee;
   
   import java.io.File;
  -import java.util.ArrayList;
  -import java.util.Iterator;
  +import java.util.Vector;
  +import java.util.Enumeration;
   
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Task;
  @@ -83,7 +83,7 @@
       private File source;
   
       /** The vendor specific tool for deploying the component **/
  -    private ArrayList vendorTools = new ArrayList();
  +    private Vector vendorTools = new Vector();
   
       ///////////////////////////////////////////////////////////////////////////
       //
  @@ -99,7 +99,7 @@
        */
       public void addGeneric(GenericHotDeploymentTool tool) {
           tool.setTask(this);
  -        vendorTools.add(tool);
  +        vendorTools.addElement(tool);
       }
   
       /**
  @@ -110,7 +110,7 @@
        */
       public void addWeblogic(WebLogicHotDeploymentTool tool) {
           tool.setTask(this);
  -        vendorTools.add(tool);
  +        vendorTools.addElement(tool);
       }
   
       ///////////////////////////////////////////////////////////////////////////
  @@ -128,8 +128,9 @@
        *  a failure occurs in the deployment process.
        */
       public void execute() throws BuildException {
  -        for (Iterator iterator = vendorTools.iterator(); iterator.hasNext();) {
  -            HotDeploymentTool tool = (HotDeploymentTool) iterator.next();
  +        for (Enumeration enum = vendorTools.elements(); 
  +             enum.hasMoreElements();) {
  +            HotDeploymentTool tool = (HotDeploymentTool) enum.nextElement();
               tool.validateAttributes();
               tool.deploy();
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message