diff options
author | Karen Lease <klease@apache.org> | 2001-10-14 21:27:12 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2001-10-14 21:27:12 +0000 |
commit | 1724bd2073890885931bec74040da7a34138f850 (patch) | |
tree | 69b1819ff83e454d650b6fad883c608ef6549caf /src/org/apache | |
parent | bea520e06587303175f812eeaedc315d3417e393 (diff) | |
download | xmlgraphics-fop-1724bd2073890885931bec74040da7a34138f850.tar.gz xmlgraphics-fop-1724bd2073890885931bec74040da7a34138f850.zip |
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
Diffstat (limited to 'src/org/apache')
-rw-r--r-- | src/org/apache/fop/tools/anttasks/Fop.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/apache/fop/tools/anttasks/Fop.java b/src/org/apache/fop/tools/anttasks/Fop.java index 95fc36927..ffa5288f1 100644 --- a/src/org/apache/fop/tools/anttasks/Fop.java +++ b/src/org/apache/fop/tools/anttasks/Fop.java @@ -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(); |