metasim     01/01/31 11:32:14

  Modified:    src/antidote/org/apache/tools/ant/gui/core
                        ResourceManager.java
  Log:
  Fixed bug with looking up resources under windows.
  
  Revision  Changes    Path
  1.6       +2 -4      
jakarta-ant/src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java
  
  Index: ResourceManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/core/ResourceManager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ResourceManager.java      2001/01/15 19:47:26     1.5
  +++ ResourceManager.java      2001/01/31 19:32:11     1.6
  @@ -63,7 +63,7 @@
    * Singleton class for accessing various resources by the application.
    * Relies on the resource bundles for resource values.
    *
  - * @version $Revision: 1.5 $ 
  + * @version $Revision: 1.6 $ 
    * @author Simeon H.K. Fitch 
    */
   public class ResourceManager {
  @@ -77,7 +77,7 @@
   
       /** Image path. */
       private static final String IMG_PATH = 
  -        File.separator + RESOURCE_PKG.replace('.', File.separatorChar);
  +        '/' + RESOURCE_PKG.replace('.', '/');
   
       /** Resources to reference. */
       private ResourceBundle _resources = null;
  @@ -312,9 +312,7 @@
           if(fileName == null) return null;
   
           ImageIcon icon = null;
  -
           URL location = getClass().getResource(IMG_PATH + "/" + fileName);
  -
           if(location != null) {
               icon = new ImageIcon(location);
           }
  
  
  

Reply via email to