ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant Project.java Task.java
Date Wed, 17 Dec 2003 15:57:52 GMT
peterreilly    2003/12/17 07:57:52

  Modified:    src/main/org/apache/tools/ant Project.java Task.java
  Log:
  Change level of std error message from ERR to WARN
  
  Revision  Changes    Path
  1.156     +5 -5      ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.155
  retrieving revision 1.156
  diff -u -r1.155 -r1.156
  --- Project.java	11 Dec 2003 12:11:36 -0000	1.155
  +++ Project.java	17 Dec 2003 15:57:52 -0000	1.156
  @@ -1101,15 +1101,15 @@
        * the message is logged directly.
        *
        * @param output Message to handle. Should not be <code>null</code>.
  -     * @param isError Whether the text represents an error (<code>true</code>)
  +     * @param isWarning Whether the text represents an warning (<code>true</code>)
        *        or information (<code>false</code>).
        */
  -    public void demuxOutput(String output, boolean isError) {
  +    public void demuxOutput(String output, boolean isWarning) {
           Task task = getThreadTask(Thread.currentThread());
           if (task == null) {
  -            log(output, isError ? MSG_ERR : MSG_INFO);
  +            log(output, isWarning ? MSG_WARN : MSG_INFO);
           } else {
  -            if (isError) {
  +            if (isWarning) {
                   task.handleErrorOutput(output);
               } else {
                   task.handleOutput(output);
  
  
  
  1.52      +2 -2      ant/src/main/org/apache/tools/ant/Task.java
  
  Index: Task.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Task.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- Task.java	18 Nov 2003 10:51:41 -0000	1.51
  +++ Task.java	17 Dec 2003 15:57:52 -0000	1.52
  @@ -344,12 +344,12 @@
       }
   
       /**
  -     * Handles an error output by logging it with the ERR priority.
  +     * Handles an error output by logging it with the WARN priority.
        *
        * @param output The error output to log. Should not be <code>null</code>.
        */
       protected void handleErrorOutput(String output) {
  -        log(output, Project.MSG_ERR);
  +        log(output, Project.MSG_WARN);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message