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-myrmidon/framework/src/java/org/apache/myrmidon/framework AbstractContainerTask.java
Date Thu, 02 May 2002 08:52:00 GMT
donaldp     02/05/02 01:52:00

  Modified:    framework/src/java/org/apache/myrmidon/framework
                        AbstractContainerTask.java
  Log:
  Make it possible for subclasses of containerTask to create their own
  ExecutionFrame rather than inheriting the current contexts directly.
  
  Revision  Changes    Path
  1.4       +13 -3     jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java
  
  Index: AbstractContainerTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractContainerTask.java	24 Apr 2002 02:21:01 -0000	1.3
  +++ AbstractContainerTask.java	2 May 2002 08:52:00 -0000	1.4
  @@ -29,7 +29,7 @@
    * This is the class that Task writers should extend to provide custom tasks.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.3 $ $Date: 2002/04/24 02:21:01 $
  + * @version $Revision: 1.4 $ $Date: 2002/05/02 08:52:00 $
    */
   public abstract class AbstractContainerTask
       extends AbstractTask
  @@ -52,7 +52,7 @@
        *
        * @param context the context
        */
  -    public void contextualize( TaskContext context )
  +    public void contextualize( final TaskContext context )
           throws TaskException
       {
           super.contextualize( context );
  @@ -167,7 +167,7 @@
       protected final void executeTask( final ModelElement task )
           throws TaskException
       {
  -        m_executor.execute( task, m_frame );
  +        m_executor.execute( task, getExecutionFrame() );
       }
   
       /**
  @@ -241,5 +241,15 @@
               final String message = REZ.getString( "container.no-factory.error", roleName
);
               throw new TaskException( message, te );
           }
  +    }
  +
  +    /**
  +     * Return frame that can be used to execute tasks.
  +     *
  +     * @return the frame
  +     */
  +    protected ExecutionFrame getExecutionFrame()
  +    {
  +        return m_frame;
       }
   }
  
  
  

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