tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@hyperreal.org
Subject cvs commit: jakarta-tools/moo/src/share/org/apache/tools/moo/servlet MapManager.java
Date Tue, 02 Nov 1999 01:03:52 GMT
arun        99/11/01 17:03:50

  Modified:    moo/src/share/org/apache/tools/moo/servlet MapManager.java
  Log:
  Added support for multiple resource base.
  
  Revision  Changes    Path
  1.4       +9 -6      jakarta-tools/moo/src/share/org/apache/tools/moo/servlet/MapManager.java
  
  Index: MapManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/moo/src/share/org/apache/tools/moo/servlet/MapManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MapManager.java	1999/10/21 18:42:05	1.3
  +++ MapManager.java	1999/11/02 01:03:45	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tools/moo/src/share/org/apache/tools/moo/servlet/MapManager.java,v
1.3 1999/10/21 18:42:05 arun Exp $ 
  - * $Date: 1999/10/21 18:42:05 $ 
  - * $Revision: 1.3 $
  + * $Header: /home/cvs/jakarta-tools/moo/src/share/org/apache/tools/moo/servlet/MapManager.java,v
1.4 1999/11/02 01:03:45 arun Exp $ 
  + * $Date: 1999/11/02 01:03:45 $ 
  + * $Revision: 1.4 $
    * 
    * The Apache Software License, Version 1.1
    *
  @@ -75,6 +75,7 @@
   import java.util.Enumeration;
   import java.lang.NullPointerException;
   
  +
   /**
    * This class handles the mapping of client tests to server tests
    */
  @@ -134,10 +135,12 @@
           String prefix = props.getProperty(Constants.Config.ResourceBase) + "/";
           while (e.hasMoreElements()) {
               String key = (String)e.nextElement();
  -            String value = prefix + maps.get(key);
  -            maps.put(key, value); //replace the old value
  +            String uri = (String)maps.get(key);
  +            if (uri.trim().charAt(0) != '/') {
  +                String value = prefix + uri;
  +                maps.put(key, value);
  +            }
           }
  -
       }
   
       /**
  
  
  

Mime
View raw message