ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject [PATCH] Support for JDK 1.3RC1
Date Wed, 16 Feb 2000 14:08:33 GMT
Hi,

This is a simple patch which adds an attribute "classname" as an alias for
the "class" attribute in various taskdefs. This is required for use under
JDK 1.3 (RC1) due to changes in the way introspection works. Don't know
about the final version of 1.3 but changing to "classname" is probably a
good idea in any case. By leaving the setClass method in place, current
build files can continue to be used under JDKs prior to 1.3. It also allows
time for build files to be migrated. Eventually setClass should be removed.

Cheers
Conor


Index: src/main/org/apache/tools/ant/taskdefs/Available.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Available
.java
retrieving revision 1.1
diff -u -r1.1 Available.java
--- Available.java      2000/02/11 01:31:24     1.1
+++ Available.java      2000/02/16 14:01:03
@@ -79,6 +79,10 @@
         this.classname = classname;
     }

+    public void setClassname(String classname) {
+        this.classname = classname;
+    }
+
     public void setFile(String filename) {
         this.file = file;
     }
Index: src/main/org/apache/tools/ant/taskdefs/Java.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Java.java
,v
retrieving revision 1.4
diff -u -r1.4 Java.java
--- Java.java   2000/02/13 18:20:00     1.4
+++ Java.java   2000/02/16 14:01:03
@@ -125,6 +125,13 @@
     }

     /**
+     * Set the source file.
+     */
+    public void setClassname(String s) {
+        this.classname = s;
+    }
+
+    /**
      * Set the destination file.
      */
     public void setArgs(String s) {
Index: src/main/org/apache/tools/ant/taskdefs/Rmic.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Rmic.java
,v
retrieving revision 1.4
diff -u -r1.4 Rmic.java
--- Rmic.java   2000/02/14 12:19:27     1.4
+++ Rmic.java   2000/02/16 14:01:03
@@ -92,6 +92,10 @@
         this.classname = classname;
     }

+    public void setClassname(String classname) {
+        this.classname = classname;
+    }
+
     public void setSourceBase(String sourceBase) {
         this.sourceBase = sourceBase;
     }
Index: src/main/org/apache/tools/ant/taskdefs/Taskdef.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Taskdef.j
ava,v
retrieving revision 1.2
diff -u -r1.2 Taskdef.java
--- Taskdef.java        2000/01/14 02:13:19     1.2
+++ Taskdef.java        2000/02/16 14:01:03
@@ -92,4 +92,8 @@
     public void setClass(String v) {
        value = v;
     }
+
+    public void setClassname(String v) {
+       value = v;
+    }
 }




--
Conor MacNeill
conor@m64.com
M64 Pty Limited


Mime
View raw message