]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Changed the base URI of the FOP factory to be the FO file when CLI is used
authorMehdi Houshmand <mehdi@apache.org>
Fri, 6 Jul 2012 10:05:44 +0000 (10:05 +0000)
committerMehdi Houshmand <mehdi@apache.org>
Fri, 6 Jul 2012 10:05:44 +0000 (10:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1358100 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/cli/CommandLineOptions.java

index ea5a20d27f3bd410733c561a502db54f99da0ba6..5c561f9a5e1667a9bba56a3517ead04c8c3a6d01 100644 (file)
@@ -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);