Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2966

External configuration documentation outdated

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: unqualified
    • Labels:

      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);

        Attachments

          Activity

            People

            • Assignee:
              ssteiner Simon Steiner
              Reporter:
              wahrendorff Tim
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: