Browse Source

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
tags/Alt-Design_pre_awt_renderer_import
Peter Bernard West 20 years ago
parent
commit
a7d0cafbc0
1 changed files with 10 additions and 2 deletions
  1. 10
    2
      src/java/org/apache/fop/apps/Options.java

+ 10
- 2
src/java/org/apache/fop/apps/Options.java View 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);
}
}
}
}
}

Loading…
Cancel
Save