Initialize necessary property for making AreaTree output; use DefaultHierarchy for logging
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194516 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/org/apache/fop/tools/anttasks/Fop.java b/src/org/apache/fop/tools/anttasks/Fop.java
index 95fc369..ffa5288 100644
--- a/src/org/apache/fop/tools/anttasks/Fop.java
+++ b/src/org/apache/fop/tools/anttasks/Fop.java
@@ -195,7 +195,7 @@
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 @@
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 @@
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();