Details

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

      Operating System: other
      Platform: Other

      Description

      That might be nice to interpolate system properties in the configuration files.
      Something like this :

      application.home = $

      {user.home}

      /path/to/my/app/
      log.home = $

      {application.home}

      /logs/

      log4j supports this feature for its xml configuration file.

        Activity

        Hide
        Emmanuel Bourg added a comment -

        done!

        Show
        Emmanuel Bourg added a comment - done!
        Hide
        Emmanuel Bourg added a comment -

        After the 1.0 release I plan to add a SystemConfiguration class and plug it in
        the ConfigurationFactory as a <system/> element. This is a more generic solution
        than a direct tweak of the interpolation method.

        Show
        Emmanuel Bourg added a comment - After the 1.0 release I plan to add a SystemConfiguration class and plug it in the ConfigurationFactory as a <system/> element. This is a more generic solution than a direct tweak of the interpolation method.
        Hide
        Emmanuel Bourg added a comment -

        A workaround is to create a configuration from System.getProperties() using the
        ConfigurationConverter class and build a composite configuration with the system
        configuration and the application configuration.

        Show
        Emmanuel Bourg added a comment - A workaround is to create a configuration from System.getProperties() using the ConfigurationConverter class and build a composite configuration with the system configuration and the application configuration.

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Bourg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development