aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2006-07-10 14:32:07 +0000
committerManuel Mall <manuel@apache.org>2006-07-10 14:32:07 +0000
commitd2eef709227c58e0eb1caa19a69d1ee4501d0f49 (patch)
tree8733c5a0cdd37920952aa0c46462e90a8f31e6e9 /src/java/org/apache/fop/apps
parentd64831107b61a5cb223cdb18e7a5751cf86cdd9e (diff)
downloadxmlgraphics-fop-d2eef709227c58e0eb1caa19a69d1ee4501d0f49.tar.gz
xmlgraphics-fop-d2eef709227c58e0eb1caa19a69d1ee4501d0f49.zip
Some config file settings were not correctly set in FOUserAgent when invoked from command line
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420543 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps')
-rw-r--r--src/java/org/apache/fop/apps/FOUserAgent.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java
index 7fc706708..ab9d8335f 100644
--- a/src/java/org/apache/fop/apps/FOUserAgent.java
+++ b/src/java/org/apache/fop/apps/FOUserAgent.java
@@ -127,13 +127,8 @@ public class FOUserAgent {
throw new NullPointerException("The factory parameter must not be null");
}
this.factory = factory;
- try {
- if (factory.getUserConfig() != null) {
- configure(factory.getUserConfig());
- }
- } catch (ConfigurationException cfge) {
- log.error("Error while initializing the user asgent: "
- + cfge.getMessage());
+ if (factory.getUserConfig() != null) {
+ configure(factory.getUserConfig());
}
}
@@ -287,7 +282,7 @@ public class FOUserAgent {
* Configures the FOUserAgent through the factory's configuration.
* @see org.apache.avalon.framework.configuration.Configurable
*/
- protected void configure(Configuration cfg) throws ConfigurationException {
+ public void configure(Configuration cfg) {
setBaseURL(FopFactory.getBaseURLfromConfig(cfg, "base"));
if (cfg.getChild("target-resolution", false) != null) {
this.targetResolution