You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/10/22 16:15:44 UTC
[jira] Closed: (SLING-707) jcrinstall cfg syntax too rigid, does
not accept comments
[ https://issues.apache.org/jira/browse/SLING-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz closed SLING-707.
-------------------------------------
Resolution: Fixed
Implemented, here's an example cfg file:
# LanguageManager config
sling.servlet.methods=GET
sling.servlet.paths[]=/languages, /testing
test[] = With\\,comma,second
Where the "sling.servlet.paths" property has two values, and the "test" property two values, "With,comma" and "second".
jcrinstall post-processes properties having names ending in [] to turn them into multi-value properties, other properties are left as is after reading using Properties.load().
> jcrinstall cfg syntax too rigid, does not accept comments
> ---------------------------------------------------------
>
> Key: SLING-707
> URL: https://issues.apache.org/jira/browse/SLING-707
> Project: Sling
> Issue Type: Improvement
> Components: JCR Install
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
>
> jcrinstall currently uses the Felix ConfigurationHandler to read .cfg configuration files, in order to support multivalued configuration properties.
> This is not convenient for files that are meant to be written by humans, we should go back to the Properties format, enhanced to support multi-valued properties.
> The simplest way might be to first read a cfg file using Properties.load, and convert the resulting Properties into a Dictionary.
> Suggested syntax for multivalued properties, example:
> some.property[] = a,b,c,d
> generates a "some.property" entry in the resulting Dictionary, with java.lang.reflect.Array object value containing four Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.