ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Available.java
Date Thu, 28 Sep 2000 13:41:12 GMT
bodewig     00/09/28 06:41:11

  Modified:    src/etc/testcases/taskdefs available.xml
               src/main/org/apache/tools/ant/taskdefs Available.java
  Log:
  Class.forName("") throws an IllegalArgumentException instead of
  ClassNotFoundException in JDK 1.1. Make available behavior consistent
  by ignoring empty classname attributes.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-ant/src/etc/testcases/taskdefs/available.xml
  
  Index: available.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/etc/testcases/taskdefs/available.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- available.xml	2000/09/20 13:38:47	1.1
  +++ available.xml	2000/09/28 13:41:09	1.2
  @@ -75,7 +75,7 @@
   
     <target name="test15">
       <available property="test" 
  -               classname=""/>
  +               classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/>
     </target>
   
   </project>
  
  
  
  1.14      +3 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Available.java
  
  Index: Available.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Available.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Available.java	2000/09/18 07:54:59	1.13
  +++ Available.java	2000/09/28 13:41:10	1.14
  @@ -103,7 +103,9 @@
       }
   
       public void setClassname(String classname) {
  -        this.classname = classname;
  +        if (!"".equals(classname)) {
  +            this.classname = classname;
  +        }
       }
   
       public void setFile(File file) {
  
  
  

Mime
View raw message