aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/tools
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-06-21 14:27:40 +0000
committerKeiron Liddle <keiron@apache.org>2001-06-21 14:27:40 +0000
commit77b3885dd4f87b5281b10f29f2ba7568cb0d7716 (patch)
tree2dcee9921580e39ed37c587a18d4f1dcb8752269 /src/org/apache/fop/tools
parent4fb08db3f38447c9c9396d9294a0d49df120c725 (diff)
downloadxmlgraphics-fop-77b3885dd4f87b5281b10f29f2ba7568cb0d7716.tar.gz
xmlgraphics-fop-77b3885dd4f87b5281b10f29f2ba7568cb0d7716.zip
sets baseDir according to file being converted
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/tools')
-rw-r--r--src/org/apache/fop/tools/anttasks/Fop.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/apache/fop/tools/anttasks/Fop.java b/src/org/apache/fop/tools/anttasks/Fop.java
index ec8824a0f..a04810903 100644
--- a/src/org/apache/fop/tools/anttasks/Fop.java
+++ b/src/org/apache/fop/tools/anttasks/Fop.java
@@ -152,7 +152,8 @@ class FOPTaskStarter extends Starter {
public void run () throws FOPException {
try {
- Configuration.put("baseDir", task.getBasedir().toURL().toExternalForm());
+ //Configuration.put("baseDir", task.getBasedir().toURL().toExternalForm());
+ Configuration.put("baseDir", task.getFofile().getParentFile().toURL().toExternalForm());
} catch (Exception e) {
task.log("Error setting base directory", Project.MSG_DEBUG);
}