jlaskowski    2004/07/06 18:46:38

  Modified:    modules/core/src/java/org/openejb/util FileUtils.java
  Log:

  use System properties to retrieve user.dir property
  
  Revision  Changes    Path
  1.4       +3 -3      openejb1/modules/core/src/java/org/openejb/util/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb1/modules/core/src/java/org/openejb/util/FileUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FileUtils.java    5 Jul 2004 15:47:46 -0000       1.3
  +++ FileUtils.java    6 Jul 2004 22:46:38 -0000       1.4
  @@ -78,12 +78,12 @@
               }
               
               if (homePath == null) {
  -                homePath = (String) env.get("user.dir");
  +                homePath = System.getProperty("user.dir");
               }
                   
               home = new File(homePath);
               if (!home.exists() || (home.exists() && !home.isDirectory())) {
  -                homePath = (String) env.get("user.dir");
  +                homePath = System.getProperty("user.dir");
                   home = new File(homePath);
               }
   
  
  
  

Reply via email to