Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5
Description
The Configuration Object is not compatible to the old avalon one anymore.
Somebody should edit the Configuration documentation under https://xmlgraphics.apache.org/fop/2.5/embedding.html#config-external , the actual documentation is outdated.
{{import org.apache.avalon.framework.configuration.Configuration; }}{{import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder; /../ }}
{{DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); }}
{{Configuration cfg = cfgBuilder.buildFromFile(new File("C:/Temp/mycfg.xml")); }}
fopFactoryBuilder = new FopFactoryBuilder(baseURI).setConfiguration(cfg);
should be replaced with:
{{import org.apache.fop.configuration.DefaultConfiguration; }}
{{import org.apache.fop.configuration.DefaultConfigurationBuilder; /../ }}
{{DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); }}
{{DefaultConfiguration cfg = cfgBuilder.buildFromFile(new File("C:/Temp/mycfg.xml")); }}
fopFactoryBuilder = new FopFactoryBuilder(baseURI).setConfiguration(cfg);