Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-83

[configuration] properties file with include in subdir does not work as expected

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

      Description

      I use a Configuration Factory to create a Composite Configuration which points
      to properties files in subdirectories. If these properties files use the include
      statement to include other files, these files are expected at the root directory
      instead of the directory of the properties files.
      eg:
      config/config.xml (points to properties files below)
      config/module1/module1.properties
      config/module1/extra.properties
      config/module2/module2.properties

      If I want to include extra.properties in module1.properties, then I need to
      write include=module1/extra.properties, which is ackward

        Activity

        Hide
        Oliver Heger added a comment -

        PropertiesConfiguration was modified to search for include files relative to its
        own location, too, if they could not be found in the base path. This should
        solve this problem.

        Show
        Oliver Heger added a comment - PropertiesConfiguration was modified to search for include files relative to its own location, too, if they could not be found in the base path. This should solve this problem.

          People

          • Assignee:
            Unassigned
            Reporter:
            Denis Koelewijn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development