keiron 01/06/21 07:21:20
Modified: src/org/apache/fop/image FopImageFactory.java
Log:
trys to get the reference from baseDir + ref path
Revision Changes Path
1.18 +3 -11 xml-fop/src/org/apache/fop/image/FopImageFactory.java
Index: FopImageFactory.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/FopImageFactory.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- FopImageFactory.java 2001/05/21 12:10:15 1.17
+++ FopImageFactory.java 2001/06/21 14:21:11 1.18
@@ -1,4 +1,4 @@
-/* $Id: FopImageFactory.java,v 1.17 2001/05/21 12:10:15 keiron Exp $
+/* $Id: FopImageFactory.java,v 1.18 2001/06/21 14:21:11 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."
@@ -9,6 +9,7 @@
// Java
import java.io.IOException;
import java.io.InputStream;
+import java.io.File;
import java.net.URL;
import java.net.MalformedURLException;
import java.lang.reflect.Constructor;
@@ -48,16 +49,7 @@
// maybe relative
URL context_url = null;
try {
- String baseDir = Configuration.getStringValue("baseDir");
- context_url = new URL(baseDir); // how to get the context URL ?
- try {
- absoluteURL = new URL(context_url, href);
- } catch (MalformedURLException e_abs) {
- // not found
- throw new FopImageException( "Invalid Image URL : " +
- e_abs.getMessage() + "(base URL " +
- context_url.toString() + ")");
- }
+ absoluteURL = new URL(Configuration.getStringValue("baseDir") +
absoluteURL.getPath());
} catch (MalformedURLException e_context) {
// pb context url
throw new FopImageException(
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]