ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api AbstractTask.java
Date Sun, 30 Dec 2001 06:21:58 GMT
donaldp     01/12/29 22:21:58

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/api
                        AbstractTask.java
  Log:
  No need for task to implement Initializable/Disposable stages because tasks are imediatly
executed and there is no concept of multiple passes ala Ant1.x
  
  Revision  Changes    Path
  1.12      +1 -23     jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/AbstractTask.java
  
  Index: AbstractTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/AbstractTask.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbstractTask.java	30 Dec 2001 06:13:33 -0000	1.11
  +++ AbstractTask.java	30 Dec 2001 06:21:58 -0000	1.12
  @@ -8,8 +8,6 @@
   package org.apache.myrmidon.api;
   
   import java.io.File;
  -import org.apache.avalon.framework.activity.Disposable;
  -import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.context.Context;
   import org.apache.avalon.framework.context.ContextException;
   import org.apache.avalon.framework.context.Contextualizable;
  @@ -22,7 +20,7 @@
    */
   public abstract class AbstractTask
       extends AbstractLogEnabled
  -    implements Task, Contextualizable, Initializable, Disposable
  +    implements Task, Contextualizable
   {
       ///Variable to hold context for use by sub-classes
       private TaskContext m_context;
  @@ -38,16 +36,6 @@
       }
   
       /**
  -     * This will be called before execute() method and checks any preconditions.
  -     *
  -     * @exception Exception if an error occurs
  -     */
  -    public void initialize()
  -        throws Exception
  -    {
  -    }
  -
  -    /**
        * Execute task.
        * This method is called to perform actual work associated with task.
        * It is called after Task has been Configured and Initialized and before
  @@ -57,16 +45,6 @@
        */
       public abstract void execute()
           throws TaskException;
  -
  -    /**
  -     * This will be called after execute() method.
  -     * Use this to clean up any resources associated with task.
  -     *
  -     * @exception Exception if an error occurs
  -     */
  -    public void dispose()
  -    {
  -    }
   
       /**
        * Convenience method for sub-class to retrieve context.
  
  
  

--
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