ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Task.java
Date Mon, 06 Aug 2001 09:57:33 GMT
conor       01/08/06 02:57:33

  Modified:    src/main/org/apache/tools/ant Task.java
  Log:
  Restore task logging and events
  
  Revision  Changes    Path
  1.22      +19 -0     jakarta-ant/src/main/org/apache/tools/ant/Task.java
  
  Index: Task.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Task.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Task.java	2001/08/04 14:30:36	1.21
  +++ Task.java	2001/08/06 09:57:33	1.22
  @@ -188,6 +188,25 @@
       }
       
       
  +    /**   
  +     * Log a message with the default (INFO) priority.   
  +     *   
  +     * @param the message to be logged.   
  +     */   
  +    public void log(String msg) {   
  +        log(msg, Project.MSG_INFO);   
  +    }   
  +    
  +    /**   
  +     * Log a mesage with the give priority.   
  +     *   
  +     * @param the message to be logged.   
  +     * @param msgLevel the message priority at which this message is to be logged.   
  +     */   
  +    public void log(String msg, int msgLevel) {   
  +        project.log(this, msg, msgLevel);   
  +    }   
  +    
       /**
        * Perform this task
        */
  
  
  

Mime
View raw message