From: Keiron Liddle Date: Tue, 22 May 2001 08:41:38 +0000 (+0000) Subject: fixes a problem relating to rendering options for xml renderer X-Git-Tag: PRE_CODEFORMATTING~115 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2230b00a9f269d626f39a6d53d2e8c92959105c;p=xmlgraphics-fop.git fixes a problem relating to rendering options for xml renderer git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194264 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/tools/TestConverter.java b/src/org/apache/fop/tools/TestConverter.java index 623810f0d..88e9f8a8b 100644 --- a/src/org/apache/fop/tools/TestConverter.java +++ b/src/org/apache/fop/tools/TestConverter.java @@ -37,6 +37,16 @@ public class TestConverter { String baseDir = "./"; Hashtable differ = new Hashtable(); + /** + * This main method can be used to run the test converter from + * the command line. + * This will take a specified testsuite xml and process all + * tests in it. + * The command line options are: + * -b to set the base directory for where the testsuite and associated files are + * -failOnly to process only the tests which are specified as fail in the test results + * -pdf to output the result as pdf + */ public static void main(String[] args) { if (args == null || args.length == 0) { System.out.println("test suite file name required"); @@ -195,6 +205,10 @@ public class TestConverter { driver.setRenderer(Driver.RENDER_XML); } + Hashtable rendererOptions = new Hashtable(); + rendererOptions.put("fineDetail", new Boolean(false)); + driver.getRenderer().setOptions(rendererOptions); + driver.buildFOTree(parser, inputHandler.getInputSource()); driver.format(); String outname = xmlFile.getName();