commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CONFIGURATION-221) Allow system properties in config.xml
Date Sat, 26 Aug 2006 16:39:24 GMT
     [ http://issues.apache.org/jira/browse/CONFIGURATION-221?page=all ]

Oliver Heger resolved CONFIGURATION-221.
----------------------------------------

    Fix Version/s: Nightly Builds
       Resolution: Fixed

Found some time today so I added a unit test and applied the patch to the current 1.3 trunk.
Please double check.

Many thanks again!

> Allow system properties in config.xml
> -------------------------------------
>
>                 Key: CONFIGURATION-221
>                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-221
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final
>         Environment: All
>            Reporter: Rainer Jung
>         Assigned To: Oliver Heger
>             Fix For: Nightly Builds
>
>         Attachments: commons-configuration_1_2_patch.txt
>
>
> The attached patch allows system properties in the filename attributes of a config.xml
file used in the factory.
> The patch is very simple, since commons-digester parses the file and has a built in capability
to do the property substitution.
> The dependency of commons-configuration to commons-digester goes up from version 1.5
to 1.6. The most recent version 1.7 of commons-digester is not necessary.
> The patch can easily be ported to 1.3 and trunk.
> Use case: often the config.xml files are contained in a distribution unit like a war
file, that should not be manipulated after packaging. The path names in config.xml need some
way of making them externally variable so that the packaging unit can be adoped to a special
environment without repackaging. By allowing system properties in the file names, this can
be done easily.
> The implementation is simple, short and low risk.
> It would be nice, if you considered the patch for inclusion in the next release.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message