You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Simon Steiner (Jira)" <ji...@apache.org> on 2020/09/08 07:32:00 UTC
[jira] [Assigned] (FOP-2966) External configuration documentation
outdated
[ https://issues.apache.org/jira/browse/FOP-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Steiner reassigned FOP-2966:
----------------------------------
Assignee: Simon Steiner
> External configuration documentation outdated
> ---------------------------------------------
>
> Key: FOP-2966
> URL: https://issues.apache.org/jira/browse/FOP-2966
> Project: FOP
> Issue Type: Task
> Components: unqualified
> Affects Versions: 2.5
> Reporter: Tim
> Assignee: Simon Steiner
> Priority: Major
> Labels: documentation
>
> 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);}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)