manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r940889 - /incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/system/LCF.java
Date Tue, 04 May 2010 15:06:02 GMT
Author: kwright
Date: Tue May  4 15:06:02 2010
New Revision: 940889

URL: http://svn.apache.org/viewvc?rev=940889&view=rev
Log:
Output status messages to stderr, not stdout, so the output of certain commands won't be messed
up.

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=940889&r1=940888&r2=940889&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 Tue May
 4 15:06:02 2010
@@ -109,7 +109,7 @@ public class LCF
       propertyFilePath = (String)props.get(lcfConfigFileProperty);
       if (propertyFilePath == null)
       {
-	System.out.println("Couldn't find "+lcfConfigFileProperty+" property; using default");
+	System.err.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();
@@ -122,7 +122,7 @@ public class LCF
       String logConfigFile = getProperty(logConfigFileProperty);
       if (logConfigFile == null)
       {
-	System.out.println("Couldn't find "+logConfigFileProperty+" property; using default");
+	System.err.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();
@@ -167,8 +167,7 @@ public class LCF
         try
         {
           localProperties.load(is);
-	  System.out.println("Property file successfully read");
-          //System.err.println("Loaded configuration properties: '" + f.toString() + "'");
+	  System.err.println("Property file successfully read");
           propertyFilelastMod = f.lastModified();
         }
         finally
@@ -177,7 +176,7 @@ public class LCF
         }
       }
       else
-	System.out.println("Property file not read because it didn't change");
+	System.err.println("Property file not read because it didn't change");
     }
     catch (Exception e)
     {



Mime
View raw message