ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs PathConvert.java
Date Wed, 04 Jul 2001 09:45:45 GMT
bodewig     01/07/04 02:45:45

  Modified:    src/main/org/apache/tools/ant/taskdefs PathConvert.java
  Log:
  make pathconvert task compile in JDK 1.1
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
  
  Index: PathConvert.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/PathConvert.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PathConvert.java	2001/06/22 01:45:47	1.1
  +++ PathConvert.java	2001/07/04 09:45:41	1.2
  @@ -150,7 +150,7 @@
       public MapEntry createMap() {
   
           MapEntry entry = new MapEntry();
  -        prefixMap.add( entry );
  +        prefixMap.addElement( entry );
           return entry;
       }
   
  @@ -288,7 +288,7 @@
               // entries actually changes the element
   
               for( int i=0; i < size; i++ ) {
  -                MapEntry entry = (MapEntry)prefixMap.get(i);
  +                MapEntry entry = (MapEntry)prefixMap.elementAt(i);
                   String newElem = entry.apply( elem );
   
                   // Note I'm using "!=" to see if we got a new object back from
  @@ -359,7 +359,7 @@
       private boolean targetWindows = false;  // Set when targetOS is set
       private boolean onWindows = false;      // Set if we're running on windows
       private String property = null;         // The property to receive the results
  -    private ArrayList prefixMap = new ArrayList();  // Path prefix map
  +    private Vector prefixMap = new Vector();  // Path prefix map
       private String pathSep = null;          // User override on path sep char
       private String dirSep = null;           // User override on directory sep char
   }
  
  
  

Mime
View raw message