diff options
author | Keiron Liddle <keiron@apache.org> | 2001-07-04 13:55:28 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-07-04 13:55:28 +0000 |
commit | eb6b3bae25c211cdb50cea45ccbe318e39adb06b (patch) | |
tree | 2e1798ad8259171b872e081112ff8f7e17314c43 | |
parent | da65d843480b5d4d3ded02ef7c3ba18b645b3fca (diff) | |
download | xmlgraphics-fop-eb6b3bae25c211cdb50cea45ccbe318e39adb06b.tar.gz xmlgraphics-fop-eb6b3bae25c211cdb50cea45ccbe318e39adb06b.zip |
sets base dir for test, using xml path
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194330 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/tools/TestConverter.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/apache/fop/tools/TestConverter.java b/src/org/apache/fop/tools/TestConverter.java index fcc402ed7..57a9c04e6 100644 --- a/src/org/apache/fop/tools/TestConverter.java +++ b/src/org/apache/fop/tools/TestConverter.java @@ -7,6 +7,7 @@ package org.apache.fop.tools; import org.apache.fop.apps.*; +import org.apache.fop.configuration.*; import java.io.*; import java.util.*; @@ -188,6 +189,13 @@ public class TestConverter { try { File xmlFile = new File(baseDir + "/" + xml); + + try { + Configuration.put("baseDir", xmlFile.getParentFile().toURL().toExternalForm()); + } catch (Exception e) { + System.err.println("Error setting base directory"); + } + InputHandler inputHandler = new XSLTInputHandler(xmlFile, new File(baseDir + "/" + xsl)); @@ -214,6 +222,7 @@ public class TestConverter { } driver.setOutputStream( new FileOutputStream(new File(destdir, outname + (outputPDF ? ".pdf" : ".at.xml")))); +System.out.println("ddir:" + destdir + " on:" + outname + ".pdf"); driver.render(); // check difference |