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/api/src/java/org/apache/myrmidon/listeners TaskToProjectListenerAdapter.java
Date Thu, 25 Apr 2002 09:51:43 GMT
donaldp     02/04/25 02:51:43

  Modified:    api/src/java/org/apache/myrmidon/listeners
                        TaskToProjectListenerAdapter.java
  Log:
  Task name is not stored in path but in the name field of TaskEvent
  
  Revision  Changes    Path
  1.2       +2 -5      jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/listeners/TaskToProjectListenerAdapter.java
  
  Index: TaskToProjectListenerAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/listeners/TaskToProjectListenerAdapter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TaskToProjectListenerAdapter.java	25 Apr 2002 08:15:26 -0000	1.1
  +++ TaskToProjectListenerAdapter.java	25 Apr 2002 09:51:43 -0000	1.2
  @@ -16,7 +16,7 @@
    * the {@link ProjectListener} interface.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2002/04/25 08:15:26 $
  + * @version $Revision: 1.2 $ $Date: 2002/04/25 09:51:43 $
    */
   public class TaskToProjectListenerAdapter
       implements TaskListener
  @@ -115,10 +115,7 @@
               targetName = elements[ 1 ];
           }
   
  -        if( 3 >= elements.length )
  -        {
  -            taskName = elements[ elements.length - 1 ];
  -        }
  +            taskName = event.getName();
   
           return new ProjectEvent( event,
                                    projectName,
  
  
  

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