You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2002/07/02 09:29:35 UTC

cvs commit: jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/listener TaskToProjectListenerAdapter.java

donaldp     2002/07/02 00:29:35

  Modified:    framework/src/java/org/apache/myrmidon/framework/listener
                        TaskToProjectListenerAdapter.java
  Log:
  Use qualified name of event to determine what type of event it is rather than just using plain path.
  
  Previously we had a bug where the name of task was part of path so path was the FQN not just path. Thus this had previously worked but failed during my reorganization
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/listener/TaskToProjectListenerAdapter.java
  
  Index: TaskToProjectListenerAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/listener/TaskToProjectListenerAdapter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TaskToProjectListenerAdapter.java	29 May 2002 13:03:33 -0000	1.2
  +++ TaskToProjectListenerAdapter.java	2 Jul 2002 07:29:35 -0000	1.3
  @@ -20,8 +20,8 @@
   import org.apache.myrmidon.interfaces.configurer.Configurer;
   
   /**
  - * This is a class that adapts {@link org.apache.myrmidon.api.event.TaskListener} interface to
  - * the {@link org.apache.myrmidon.framework.listener.ProjectListener} interface.
  + * This is a class that adapts {@link TaskListener} interface to
  + * the {@link ProjectListener} interface.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @version $Revision$ $Date$
  @@ -123,15 +123,15 @@
       }
   
       /**
  -     * Convert the specified {@link org.apache.myrmidon.api.event.TaskEvent} to a {@link org.apache.myrmidon.framework.listener.ProjectEvent}.
  +     * Convert the specified {@link TaskEvent} to a {@link ProjectEvent}.
        *
        * @param event the TaskEvent
        * @return the Project event representing TaskEvent
        */
       private ProjectEvent toProjectEvent( final TaskEvent event )
       {
  -        final String path = event.getPath();
  -        final String[] elements = split( path, "/" );
  +        final String name = event.getQualifiedName();
  +        final String[] elements = split( name, "/" );
   
           String projectName = null;
           String targetName = null;
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>