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/container/src/java/org/apache/myrmidon/components/workspace DefaultTaskContext.java
Date Tue, 23 Apr 2002 06:55:39 GMT
donaldp     02/04/22 23:55:39

  Modified:    api/src/java/org/apache/myrmidon/api TaskContext.java
               container/src/java/org/apache/myrmidon/components/workspace
                        DefaultTaskContext.java
  Log:
  Remove createSubContext from TaskContext as we are moving towards a model where the context
is controlled by the ExecutionFrame rather than by proxy via the TaskContext
  
  Revision  Changes    Path
  1.30      +1 -12     jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/TaskContext.java
  
  Index: TaskContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/TaskContext.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- TaskContext.java	17 Apr 2002 07:16:20 -0000	1.29
  +++ TaskContext.java	23 Apr 2002 06:55:39 -0000	1.30
  @@ -16,7 +16,7 @@
    * path between the container and the Task.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.29 $ $Date: 2002/04/17 07:16:20 $
  + * @version $Revision: 1.30 $ $Date: 2002/04/23 06:55:39 $
    *
    * @todo Add some additional standard properties.
    */
  @@ -224,16 +224,5 @@
        * @return true if "error" messages will be logged
        */
       boolean isErrorEnabled();
  -
  -    /**
  -     * Create a Child Context.
  -     * This allows separate hierarchly contexts to be easily constructed.
  -     *
  -     * @param name the name of sub-context
  -     * @return the created TaskContext
  -     * @exception TaskException if an error occurs
  -     */
  -    TaskContext createSubContext( String name )
  -        throws TaskException;
   }
   
  
  
  
  1.37      +1 -21     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.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- DefaultTaskContext.java	9 Apr 2002 02:26:35 -0000	1.36
  +++ DefaultTaskContext.java	23 Apr 2002 06:55:39 -0000	1.37
  @@ -13,7 +13,6 @@
   import org.apache.avalon.excalibur.i18n.Resources;
   import org.apache.avalon.excalibur.io.FileUtil;
   import org.apache.avalon.framework.logger.Logger;
  -import org.apache.avalon.framework.service.DefaultServiceManager;
   import org.apache.avalon.framework.service.ServiceException;
   import org.apache.avalon.framework.service.ServiceManager;
   import org.apache.myrmidon.api.TaskContext;
  @@ -25,7 +24,7 @@
    * Default implementation of TaskContext.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.36 $ $Date: 2002/04/09 02:26:35 $
  + * @version $Revision: 1.37 $ $Date: 2002/04/23 06:55:39 $
    */
   public class DefaultTaskContext
       implements TaskContext
  @@ -359,24 +358,5 @@
       public boolean isErrorEnabled()
       {
           return m_logger.isFatalErrorEnabled();
  -    }
  -
  -    /**
  -     * Create a Child Context.
  -     * This allows separate hierarchly contexts to be easily constructed.
  -     *
  -     * @param name the name of sub-context
  -     * @return the created TaskContext
  -     * @exception TaskException if an error occurs
  -     */
  -    public TaskContext createSubContext( final String name )
  -        throws TaskException
  -    {
  -        final PropertyStore store = m_store.createChildStore( name );
  -        final DefaultServiceManager serviceManager =
  -            new DefaultServiceManager( m_serviceManager );
  -        final Logger logger = m_logger.getChildLogger( name );
  -
  -        return new DefaultTaskContext( serviceManager, logger, store );
       }
   }
  
  
  

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