ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Glen_Stampoult...@ansett.com.au>
Subject Re: Minor JDK 1.1 nit
Date Fri, 14 Jul 2000 04:07:55 GMT



So ant is supposed to be compilable with 1.1?  If that is the case then the
jikes patch just sent in will also have a problem.

-- Glen






"Andrew B. Sudell" <asudell@acm.org> on 14/07/2000 01:06:11 PM

Please respond to ant-dev@jakarta.apache.org; Please respond to Drew Sudell
      <asudell@acm.org>

To:   ant-dev@jakarta.apache.org
cc:    (bcc: Glen Stampoultzis/ITD/MEL/Ansett/AU)
Subject:  Minor JDK 1.1 nit



This always catches me, too.  JDK 1.1 only has addElement, but
add seems so much more natural to say.

Index: src/main/org/apache/tools/ant/taskdefs/AntStructure.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java,v

retrieving revision 1.1
diff -u -r1.1 AntStructure.java
--- src/main/org/apache/tools/ant/taskdefs/AntStructure.java    2000/07/12
14:19:52     1.1
+++ src/main/org/apache/tools/ant/taskdefs/AntStructure.java    2000/07/14
02:59:10
@@ -108,7 +108,7 @@
             Enumeration enum = project.getTaskDefinitions().keys();
             while (enum.hasMoreElements()) {
                 String taskName = (String) enum.nextElement();
-                tasks.add(taskName);
+                tasks.addElement(taskName);
             }
             printTargetDecl(out, tasks);


--
        Drew Sudell     asudell@op.net      http://www.op.net/~asudell






_____________________________________________________________________
CAUTION - This message may contain privileged and confidential 
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby 
notified that any use, dissemination, distribution or reproduction 
of this message is prohibited. If you have received this message in 
error please notify Ansett Australia immediately. Any views expressed 
in this message are those of the individual sender and may not 
necessarily reflect the views of Ansett Australia.

ABN Ansett Australia Ltd	37 004 209 410
ABN Ansett International Ltd	72 060 622 460
_____________________________________________________________________

Mime
View raw message