Browse Source

Fix bug in the construction of a base URL when it's specified as a file system path.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381978 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_92-beta
Jeremias Maerki 18 years ago
parent
commit
424d538254
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      src/java/org/apache/fop/apps/FOUserAgent.java

+ 1
- 4
src/java/org/apache/fop/apps/FOUserAgent.java View File

@@ -434,10 +434,7 @@ public class FOUserAgent {
if (cfgBaseDir != null) {
File dir = new File(cfgBaseDir);
if (dir.isDirectory()) {
cfgBaseDir = "file://" + dir.getCanonicalPath()
+ System.getProperty("file.separator");
cfgBaseDir = cfgBaseDir.replace(
System.getProperty("file.separator").charAt(0), '/');
cfgBaseDir = dir.toURL().toExternalForm();
} else {
//The next statement is for validation only
new URL(cfgBaseDir);

Loading…
Cancel
Save