Author: adrianc
Date: Sun Feb 24 00:27:33 2013
New Revision: 1449429
URL:
http://svn.apache.org/r1449429Log:
Fixed a bug in one of my recent commits:
https://issues.apache.org/jira/browse/OFBIZ-5140Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java?rev=1449429&r1=1449428&r2=1449429&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java Sun Feb 24 00:27:33 2013
@@ -85,7 +85,7 @@ public class ApacheFopWorker {
} else {
Debug.logWarning("FOP configuration file not found: " + userConfigFile, module);
}
- String fopFontBaseProperty = UtilProperties.getPropertyValue("fop.properties", "fop.font.base.url", "file:///" + ofbizHome + "/framework/webapp/config/");
+ String fopFontBaseProperty = UtilProperties.getPropertyValue("fop.properties", "fop.font.base.url", ofbizHome + "/framework/webapp/config/");
File fontBaseFile = FileUtil.getFile(fopFontBaseProperty);
if (fontBaseFile.isDirectory()) {
fopFactory.getFontManager().setFontBaseURL(fontBaseFile.toURI().toURL().toString());
@@ -94,7 +94,7 @@ public class ApacheFopWorker {
}
Debug.logInfo("FOP FontBaseURL: " + fopFactory.getFontManager().getFontBaseURL(), module);
} catch (Exception e) {
- Debug.logWarning(e, "Error reading FOP configuration", module);
+ Debug.logWarning(e, "Error reading FOP configuration: ", module);
}
}
}