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/api/event TaskEvent.java
Date Tue, 23 Apr 2002 01:31:26 GMT
donaldp     02/04/22 18:31:26

  Modified:    api/src/java/org/apache/myrmidon/api/event TaskEvent.java
  Log:
  Add some javadocs and a new constructor that is easier to use for starting/finished events
  
  Revision  Changes    Path
  1.3       +28 -1     jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/event/TaskEvent.java
  
  Index: TaskEvent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/event/TaskEvent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TaskEvent.java	21 Apr 2002 01:26:31 -0000	1.2
  +++ TaskEvent.java	23 Apr 2002 01:31:26 -0000	1.3
  @@ -15,7 +15,7 @@
    *
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/04/21 01:26:31 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/23 01:31:26 $
    */
   public final class TaskEvent
   {
  @@ -52,6 +52,33 @@
        */
       private final int m_processID;
   
  +    /**
  +     * Create a task event that does not specify the message/throwable
  +     * attributes (as they are not required for starting/finished events).
  +     *
  +     * @param path the path to task
  +     * @param name the tasks name
  +     * @param location the location of task in physical medium
  +     * @param processID the process ID in which task is executing
  +     */
  +    public TaskEvent( final String path,
  +                      final String name,
  +                      final String location,
  +                      final int processID )
  +    {
  +        this( path, name, location, null, null, processID );
  +    }
  +
  +    /**
  +     * Create a task event with all the required parameters specified.
  +     *
  +     * @param path the path to task
  +     * @param name the tasks name
  +     * @param location the location of task in physical medium
  +     * @param message the message associated with event (may be null)
  +     * @param throwable the throwable associated with event (may be null)
  +     * @param processID the process ID in which task is executing
  +     */
       public TaskEvent( final String path,
                         final String name,
                         final String location,
  
  
  

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