[jira] [Resolved] (FOP-2966) External configuration documentation outdated

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (FOP-2966) External configuration documentation outdated

Simon Steiner (Jira)

     [ https://issues.apache.org/jira/browse/FOP-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Steiner resolved FOP-2966.
--------------------------------
    Fix Version/s: trunk
       Resolution: Fixed

https://github.com/apache/xmlgraphics-website/commit/68cc1bd6b3adc6a2a62ea7a36b264be8ac4c4574

> 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
>             Fix For: trunk
>
>
> 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)