]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Make failure to find user config file non-fatal.
authorPeter Bernard West <pbwest@apache.org>
Wed, 31 Dec 2003 04:28:27 +0000 (04:28 +0000)
committerPeter Bernard West <pbwest@apache.org>
Wed, 31 Dec 2003 04:28:27 +0000 (04:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197081 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/apps/Options.java

index 613f2dfee341b674caeb07d2262ae05964e3d160..075934b15692d24c891d64dda99e05648b8a9d3e 100644 (file)
@@ -458,8 +458,16 @@ public class Options {
                 readOk = false;
             }
             if (! readOk) {
-                // Try reading the file using loadConfig()
-                loadConfiguration(userConfigFileName);
+                try {
+                    // Try reading the file using loadConfig()
+                    loadConfiguration(userConfigFileName);
+                } catch (FOPException ex) {
+                    MessageHandler.logln("Can't find user configuration file "
+                    + userConfigFile + " in system locations");
+                    if (debug) {
+                        reader.dumpError(ex);
+                    }
+                }
             }
         }
     }