]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
sets baseDir according to file being converted
authorKeiron Liddle <keiron@apache.org>
Thu, 21 Jun 2001 14:27:40 +0000 (14:27 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 21 Jun 2001 14:27:40 +0000 (14:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194305 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/tools/anttasks/Fop.java

index ec8824a0f192189c8f401fd79bc10faf6a9e96b7..a04810903642a14de64256ce40b416cd1a78439c 100644 (file)
@@ -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);
         }