From: Mehdi Houshmand Date: Fri, 6 Jul 2012 10:05:44 +0000 (+0000) Subject: Changed the base URI of the FOP factory to be the FO file when CLI is used X-Git-Tag: fop-2_0~331 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6405d862d3c5bb4427ed1fee0c38f18e0d245271;p=xmlgraphics-fop.git Changed the base URI of the FOP factory to be the FO file when CLI is used git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1358100 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/cli/CommandLineOptions.java b/src/java/org/apache/fop/cli/CommandLineOptions.java index ea5a20d27..5c561f9a5 100644 --- a/src/java/org/apache/fop/cli/CommandLineOptions.java +++ b/src/java/org/apache/fop/cli/CommandLineOptions.java @@ -1030,7 +1030,7 @@ public class CommandLineOptions { private void setUserConfig() throws FOPException, IOException { FopFactoryBuilder fopFactoryBuilder; if (userConfigFile == null) { - fopFactoryBuilder = new FopFactoryBuilder(new File(".").toURI()); + fopFactoryBuilder = new FopFactoryBuilder(fofile.toURI()); fopFactoryBuilder.setStrictFOValidation(strictValidation); fopFactoryBuilder.setTargetResolution(targetResolution); fopFactoryBuilder.setComplexScriptFeatures(useComplexScriptFeatures);