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

External configuration documentation outdated

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6
    • unqualified

    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

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

            Dates

              Created:
              Updated:
              Resolved: