incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r939837 - /incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java
Date Fri, 30 Apr 2010 21:54:26 GMT
Author: kwright
Date: Fri Apr 30 21:54:26 2010
New Revision: 939837

URL: http://svn.apache.org/viewvc?rev=939837&view=rev
Log:
Put in diagnostics and fix failure to load property file on linux.

Modified:
    incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java

Modified: incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java?rev=939837&r1=939836&r2=939837&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java (original)
+++ incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java Fri Apr
30 21:54:26 2010
@@ -55,7 +55,7 @@ public class LCF
   protected static String masterDatabasePassword = null;
   protected static java.util.Properties localProperties = null;
   //protected static String configPath = null;
-  protected static long propertyFilelastMod = 0;
+  protected static long propertyFilelastMod = -1L;
   protected static String propertyFilePath = null;
 
   protected static final String applicationName = "lcf";
@@ -109,6 +109,7 @@ public class LCF
       propertyFilePath = (String)props.get(lcfConfigFileProperty);
       if (propertyFilePath == null)
       {
+	System.out.println("Couldn't find "+lcfConfigFileProperty+" property; using default");
         String configPath = (String)props.get("user.home") + "/"+applicationName;
         configPath = configPath.replace('\\', '/');
         propertyFilePath = new File(configPath,"properties.ini").toString();
@@ -121,6 +122,7 @@ public class LCF
       String logConfigFile = getProperty(logConfigFileProperty);
       if (logConfigFile == null)
       {
+	System.out.println("Couldn't find "+logConfigFileProperty+" property; using default");
         String configPath = (String)props.get("user.home") + "/"+applicationName;
         configPath = configPath.replace('\\', '/');
         logConfigFile = new File(configPath,"logging.ini").toString();
@@ -165,6 +167,7 @@ public class LCF
         try
         {
           localProperties.load(is);
+	  System.out.println("Property file successfully read");
           //System.err.println("Loaded configuration properties: '" + f.toString() + "'");
           propertyFilelastMod = f.lastModified();
         }
@@ -173,6 +176,8 @@ public class LCF
           is.close();
         }
       }
+      else
+	System.out.println("Property file not read because it didn't change");
     }
     catch (Exception e)
     {



Mime
View raw message