]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Initialize necessary property for making AreaTree output; use DefaultHierarchy for...
authorKaren Lease <klease@apache.org>
Sun, 14 Oct 2001 21:27:12 +0000 (21:27 +0000)
committerKaren Lease <klease@apache.org>
Sun, 14 Oct 2001 21:27:12 +0000 (21:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194516 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/tools/anttasks/Fop.java

index 95fc3692710058d9b36b2a1aa7824dfcf9c43cc6..ffa5288f1d7c1d76acdc53cda020eeb15f623ac0 100644 (file)
@@ -195,7 +195,7 @@ class FOPTaskStarter extends Starter {
     FOPTaskStarter(Fop task) throws FOPException {
         this.task = task;
 
-        Hierarchy hierarchy = new Hierarchy();
+       Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
         // PatternFormatter formatter = new PatternFormatter(
         //   "[%{priority}] %{category}: %{message}\n%{throwable}" );
         PatternFormatter formatter = new PatternFormatter("%{message}\n%{throwable}");
@@ -287,7 +287,7 @@ class FOPTaskStarter extends Starter {
                                   toExternalForm());
             }
         } catch (Exception e) {
-            task.log("Error setting base directory", Project.MSG_DEBUG);
+            log.error("Error setting base directory",e);
         }
 
         task.log("Using base directory: " +
@@ -367,6 +367,11 @@ class FOPTaskStarter extends Starter {
             Driver driver = new Driver(inputHandler.getInputSource(), out);
             driver.setLogger(log);
             driver.setRenderer(renderer);
+           if (renderer == Driver.RENDER_XML) {
+               Hashtable rendererOptions = new Hashtable();
+               rendererOptions.put("fineDetail", new Boolean(true));
+               driver.getRenderer().setOptions(rendererOptions);
+           }
             driver.setXMLReader(parser);
             driver.run();
             out.close();