Author: eckardjf
Date: Thu Jul 22 16:01:14 2010
New Revision: 966718
URL:
http://svn.apache.org/viewvc?rev=966718&view=revLog:
replacing calls to deprecated FopFactory methods getFontBaseURL / setFontBaseURL
Modified:
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=966718&r1=966717&r2=966718&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 Thu Jul 22 16:01:14 2010
@@ -82,10 +82,10 @@ public class ApacheFopWorker {
String fopPath = UtilProperties.getPropertyValue("fop.properties", "fop.path", ofbizHome + "/framework/webapp/config");
File userConfigFile = FileUtil.getFile(fopPath + "/fop.xconf");
fopFactory.setUserConfig(userConfigFile);
- String fopFontBaseUrl = fopFactory.getFontBaseURL();
+ String fopFontBaseUrl = fopFactory.getFontManager().getFontBaseURL();
if (fopFontBaseUrl == null) {
fopFontBaseUrl = UtilProperties.getPropertyValue("fop.properties", "fop.font.base.url", "file:///" + ofbizHome + "/framework/webapp/config/");
- fopFactory.setFontBaseURL(fopFontBaseUrl);
+ fopFactory.getFontManager().setFontBaseURL(fopFontBaseUrl);
}
Debug.logInfo("FOP-FontBaseURL: " + fopFontBaseUrl, module);
} catch (Exception e) {