I have written a small patch, that allows
org.apache.java.util.ExtendedProperties to write an error message to
System.err if a file defined by 'include=' could not be found.

Right now, the class does not notify the user, if an error occurs, it simple
ignores them. I find this really hard to debug.

Could anybody take a look at the diff, and check in CVS?


--- oldExtendedProperties.java Fri Nov 24 20:00:01 2000
+++ ExtendedProperties.java Mon Dec 18 16:29:50 2000
@@ -377,7 +377,15 @@
                                 file.exists() &&
                                 file.canRead())
                                 load ( new FileInputStream(file), file);
-                        }
+                            else
+                                System.err.println( getClass().getName()
+                                       + ": Could not open file: " +
value );
+                        } else {
+                            System.err.println( getClass().getName()
+                                   + ": Could not parse statement: "
+                                   + key + "=" + value );
+      }
+
                     }

                     PropertiesTokenizer tokenizer =



cya,
David




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to