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 Tue, 02 Jul 2002 07:33:31 GMT
donaldp     2002/07/02 00:33:31

  Modified:    framework/src/java/org/apache/myrmidon/framework
                        AbstractContainerTask.java
  Log:
  Use ContextManager to create child TaskContex rather than frame
  
  Revision  Changes    Path
  1.16      +7 -7      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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AbstractContainerTask.java	30 Jun 2002 11:09:11 -0000	1.15
  +++ AbstractContainerTask.java	2 Jul 2002 07:33:31 -0000	1.16
  @@ -17,11 +17,11 @@
   import org.apache.myrmidon.api.metadata.ModelElement;
   import org.apache.myrmidon.api.metadata.ModelException;
   import org.apache.myrmidon.interfaces.configurer.Configurer;
  -import org.apache.myrmidon.interfaces.embeddor.ExecutionFrame;
   import org.apache.myrmidon.interfaces.executor.Executor;
   import org.apache.myrmidon.interfaces.role.RoleInfo;
   import org.apache.myrmidon.interfaces.role.RoleManager;
   import org.apache.myrmidon.interfaces.type.TypeManager;
  +import org.apache.myrmidon.interfaces.context.TaskContextManager;
   
   /**
    * This is the class that Task writers should extend to provide custom tasks.
  @@ -43,7 +43,7 @@
   
       ///For executing sub-elements as tasks
       private Executor m_executor;
  -    private ExecutionFrame m_frame;
  +    private TaskContextManager m_taskContextManager;
   
       /**
        * Retrieve context from container.
  @@ -57,7 +57,7 @@
           m_configurer = (Configurer)getService( Configurer.class );
           m_converter = (Converter)getService( Converter.class );
           m_executor = (Executor)getService( Executor.class );
  -        m_frame = (ExecutionFrame)getService( ExecutionFrame.class );
  +        m_taskContextManager = (TaskContextManager)getService( TaskContextManager.class
);
       }
   
       /**
  @@ -165,10 +165,10 @@
       protected final void executeTask( final ModelElement task )
           throws TaskException
       {
  -        final ExecutionFrame frame = m_frame.createChildFrame( task.getName() );
           final TaskContext context =
  -            frame.createTaskContext( task.getName(), task.getLocation() );
  -
  +            m_taskContextManager.createContext( getContext(),
  +                                                task.getName(),
  +                                                task.getLocation() );
           m_executor.execute( task, 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