From: Peter Bernard West Date: Wed, 31 Dec 2003 04:28:27 +0000 (+0000) Subject: Make failure to find user config file non-fatal. X-Git-Tag: Alt-Design_pre_awt_renderer_import~216 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a7d0cafbc070e9209b0b48da49f24208c92dd257;p=xmlgraphics-fop.git Make failure to find user config file non-fatal. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197081 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/apps/Options.java b/src/java/org/apache/fop/apps/Options.java index 613f2dfee..075934b15 100644 --- a/src/java/org/apache/fop/apps/Options.java +++ b/src/java/org/apache/fop/apps/Options.java @@ -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); + } + } } } }