keiron 01/06/21 07:27:44
Modified: src/org/apache/fop/tools/anttasks Fop.java
Log:
sets baseDir according to file being converted
Revision Changes Path
1.8 +3 -2 xml-fop/src/org/apache/fop/tools/anttasks/Fop.java
Index: Fop.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/anttasks/Fop.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Fop.java 2001/06/21 13:35:10 1.7
+++ Fop.java 2001/06/21 14:27:40 1.8
@@ -1,4 +1,4 @@
-/* $Id: Fop.java,v 1.7 2001/06/21 13:35:10 keiron Exp $
+/* $Id: Fop.java,v 1.8 2001/06/21 14:27:40 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
@@ -152,7 +152,8 @@
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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]