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/listener TaskToProjectListenerAdapter.java
Date Tue, 02 Jul 2002 07:29:35 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message