portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components AbstractComponentAwareTestCase.java
Date Wed, 03 Mar 2004 03:26:18 GMT
jford       2004/03/02 19:26:18

  Modified:    components/cm/src/java/org/apache/jetspeed/components
                        AbstractComponentAwareTestCase.java
  Log:
  Fixed issue with finding the logging properties file
  
  Revision  Changes    Path
  1.5       +9 -2      jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/AbstractComponentAwareTestCase.java
  
  Index: AbstractComponentAwareTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/AbstractComponentAwareTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractComponentAwareTestCase.java	1 Mar 2004 02:02:24 -0000	1.4
  +++ AbstractComponentAwareTestCase.java	3 Mar 2004 03:26:17 -0000	1.5
  @@ -15,6 +15,7 @@
    */
   package org.apache.jetspeed.components;
   
  +import java.io.File;
   import java.io.FileInputStream;
   import java.util.Properties;
   import org.apache.commons.logging.LogFactory;
  @@ -96,7 +97,13 @@
           Properties p = new Properties();
           try
           {
  -            p.load(new FileInputStream(log4jFile));
  +            File baseDir = new File(System.getProperty("basedir"));
  +            if(baseDir.exists())
  +            {
  +                System.out.println("Finding logfile from basedir " + baseDir);
  +                File logFile = new File(baseDir, log4jFile);
  +                p.load(new FileInputStream(logFile));
  +            }
           }
           catch (Exception e)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message