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/optional/metamata AbstractMetamataTask.java MMetricsStreamHandler.java
Date Fri, 03 Aug 2001 14:34:07 GMT
bodewig     01/08/03 07:34:07

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/metamata
                        AbstractMetamataTask.java
                        MMetricsStreamHandler.java
  Log:
  Some minor JDK 1.1 compatibility problems.  MMetricsStreamHandler.java
  still won't compile.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata/AbstractMetamataTask.java
  
  Index: AbstractMetamataTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata/AbstractMetamataTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractMetamataTask.java	2001/08/01 10:22:18	1.1
  +++ AbstractMetamataTask.java	2001/08/03 14:34:07	1.2
  @@ -225,7 +225,7 @@
   
       /** return the location of the jar file used to run */
       protected final File getMetamataJar(File home){
  -        return new File(home.getAbsoluteFile(), "lib/metamata.jar");
  +        return new File(new File(home.getAbsolutePath()), "lib/metamata.jar");
       }
   
       /** validate options set */
  
  
  
  1.2       +2 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MMetricsStreamHandler.java
  
  Index: MMetricsStreamHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MMetricsStreamHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MMetricsStreamHandler.java	2001/08/01 10:22:18	1.1
  +++ MMetricsStreamHandler.java	2001/08/03 14:34:07	1.2
  @@ -406,7 +406,8 @@
           // construct name, we'll need all this to figure out what type of
           // construct it is since we lost all semantics :(
           // (#indent[/]*)(#construct.*)
  -        String name = (String)metrics.remove(0);
  +        String name = (String)metrics.elementAt(0);
  +        metrics.removeElementAt(0);
           int indent = 0;
           pos = name.lastIndexOf('/');
           if (pos != -1){
  
  
  

Mime
View raw message