Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-600

Loading xml configuration file as a stream does not work with multi configurations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8
    • 2.0
    • None
    • None

    Description

      When using the commons configuration inside a WAR loading a XML file works fine when done like this:

      InputStream is = this.getClass().getClassLoader().getResourceAsStream("/conf/main.xml");
      builder.load(is);

      The problem is when the main.xml reference other xml files:
      configuration>
      <xml fileName="child1.xml"/>
      </configuration>

      If the structure of the war is:
      /
      /classes
      /conf/child1.xml
      /conf/main.xml

      There seems to be no way to pick up child1.xml from main.xml when loading main.xml as a stream.

      Attachments

        Activity

          People

            Unassigned Unassigned
            johhen John Henriksson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: