ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Available.java
Date Tue, 25 Jan 2005 02:29:43 GMT
jglick      2005/01/24 18:29:43

  Modified:    src/main/org/apache/tools/ant/taskdefs Available.java
  Log:
  Log warnings as warnings.
  
  Revision  Changes    Path
  1.65      +4 -2      ant/src/main/org/apache/tools/ant/taskdefs/Available.java
  
  Index: Available.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Available.java,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- Available.java	11 Jan 2005 16:34:57 -0000	1.64
  +++ Available.java	25 Jan 2005 02:29:43 -0000	1.65
  @@ -165,7 +165,8 @@
        */
       public void setType(String type) {
           log("DEPRECATED - The setType(String) method has been deprecated."
  -            + " Use setType(Available.FileDir) instead.");
  +            + " Use setType(Available.FileDir) instead.",
  +            Project.MSG_WARN);
           this.type = new FileDir();
           this.type.setValue(type);
       }
  @@ -211,7 +212,8 @@
                           + " property."
                           + StringUtils.LINE_SEP
                           + "  Build file should not reuse the same property"
  -                        + " name for different values.");
  +                        + " name for different values.",
  +                        Project.MSG_WARN);
                   }
                   // NB: this makes use of Project#setProperty rather than Project#setNewProperty
                   //     due to backwards compatiblity reasons
  
  
  

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


Mime
View raw message