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/api/src/java/org/apache/myrmidon/listeners TaskToProjectListenerAdapter.java
Date Fri, 26 Apr 2002 03:08:23 GMT
adammurdoch    02/04/25 20:08:22

  Modified:    api/src/java/org/apache/myrmidon/listeners
                        TaskToProjectListenerAdapter.java
  Log:
  Project name was missing from events.
  
  Revision  Changes    Path
  1.3       +4 -4      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TaskToProjectListenerAdapter.java	25 Apr 2002 09:51:43 -0000	1.2
  +++ TaskToProjectListenerAdapter.java	26 Apr 2002 03:08:22 -0000	1.3
  @@ -16,7 +16,7 @@
    * the {@link ProjectListener} interface.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/04/25 09:51:43 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/26 03:08:22 $
    */
   public class TaskToProjectListenerAdapter
       implements TaskListener
  @@ -105,17 +105,17 @@
           String projectName = null;
           String targetName = null;
           String taskName = null;
  -        if( 1 >= elements.length )
  +        if( 1 <= elements.length )
           {
               projectName = elements[ 0 ];
           }
   
  -        if( 2 >= elements.length )
  +        if( 2 <= elements.length )
           {
               targetName = elements[ 1 ];
           }
   
  -            taskName = event.getName();
  +        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