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/embeddor DefaultEmbeddor.java
Date Fri, 26 Apr 2002 03:09:59 GMT
adammurdoch    02/04/25 20:09:59

  Modified:    container/src/java/org/apache/myrmidon/components/embeddor
                        DefaultEmbeddor.java
  Log:
  Don't create 2 event managers.
  
  Revision  Changes    Path
  1.53      +2 -3      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/embeddor/DefaultEmbeddor.java
  
  Index: DefaultEmbeddor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/embeddor/DefaultEmbeddor.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- DefaultEmbeddor.java	25 Apr 2002 11:33:34 -0000	1.52
  +++ DefaultEmbeddor.java	26 Apr 2002 03:09:59 -0000	1.53
  @@ -33,7 +33,6 @@
   import org.apache.avalon.framework.service.Serviceable;
   import org.apache.myrmidon.Constants;
   import org.apache.myrmidon.api.TaskContext;
  -import org.apache.myrmidon.components.event.DefaultTaskEventManager;
   import org.apache.myrmidon.components.store.DefaultPropertyStore;
   import org.apache.myrmidon.components.workspace.DefaultExecutionFrame;
   import org.apache.myrmidon.interfaces.builder.ProjectBuilder;
  @@ -65,7 +64,7 @@
    * Instantiate this to embed inside other applications.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.52 $ $Date: 2002/04/25 11:33:34 $
  + * @version $Revision: 1.53 $ $Date: 2002/04/26 03:09:59 $
    */
   public class DefaultEmbeddor
       extends AbstractLogEnabled
  @@ -148,7 +147,7 @@
           final PropertyStore propStore = createBaseStore( properties );
   
           // Create an execution frame, and attach it to the workspace
  -        final TaskEventManager eventManager = new DefaultTaskEventManager();
  +        final TaskEventManager eventManager = (TaskEventManager)m_workspaceServiceManager.lookup(
TaskEventManager.ROLE );
           final ExecutionFrame frame =
               new DefaultExecutionFrame( "",
                                          getLogger(),
  
  
  

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