ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace DefaultTaskContext.java
Date Sat, 11 May 2002 12:26:19 GMT
adammurdoch    02/05/11 05:26:19

  Modified:    container/src/java/org/apache/myrmidon/components/workspace
                        DefaultTaskContext.java
  Log:
  Hackery to make sure that tasks are using the correct ExecutionFrame when
  executing nested tasks.  They were all using the project's ExecutionFrame.
  
  Revision  Changes    Path
  1.45      +7 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java
  
  Index: DefaultTaskContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- DefaultTaskContext.java	5 May 2002 12:20:41 -0000	1.44
  +++ DefaultTaskContext.java	11 May 2002 12:26:19 -0000	1.45
  @@ -28,7 +28,7 @@
    * Default implementation of TaskContext.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.44 $ $Date: 2002/05/05 12:20:41 $
  + * @version $Revision: 1.45 $ $Date: 2002/05/11 12:26:19 $
    */
   public class DefaultTaskContext
       implements TaskContext
  @@ -113,6 +113,12 @@
       public Object getService( final Class serviceClass )
           throws TaskException
       {
  +        //TODO: Should not occur but done for the time being to simplify evolution.
  +        if( serviceClass == ExecutionFrame.class )
  +        {
  +            return m_frame;
  +        }
  +
           final String serviceClassName = serviceClass.getName();
           final ServiceManager serviceManager = m_frame.getServiceManager();
   
  
  
  

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