[ 
https://issues.apache.org/jira/browse/SLING-9031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-9031:
-----------------------------------
    Description: 
It would be nice if the run mode support in both the JCR installer 
(https://sling.apache.org/documentation/bundles/jcr-installer-provider.html#runmode-support)
 as well as the File installer 
(https://sling.apache.org/documentation/bundles/file-installer-provider.html#runmode-support)
 would be enhanced so that apart from the AND logic (with ".", requiring all 
run modes to be active) also an OR logic would be supported (i.e. to set a 
certain config on an instance having runmode a or b) without being forced to 
duplicate that config.

As a syntax one could choose to use "|" as OR separator and keep using "." as 
AND separator (similar to the syntax of 
https://sling.apache.org/documentation/bundles/sling-settings-org-apache-sling-settings.html#defining-valid-run-modes).
 OR should have lower precedence so that AND is processed first.

  was:
It would be nice if the run mode support in both the JCR as well as the File 
installer would be enhancde so that apart from the AND logic (with ".", 
requiring all run modes to be active) also an OR logic would be supported (i.e. 
to set a certain config on an instance having runmode a or b) without being 
forced to duplicate that config.

As a syntax one could choose to use "|" as OR separator and keep using "." as 
AND separator. OR should have lower precedence so that AND is processed first.


> Support OR logic for run mode support
> -------------------------------------
>
>                 Key: SLING-9031
>                 URL: https://issues.apache.org/jira/browse/SLING-9031
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: File Installer 1.1.0, JCR Installer 3.1.26
>            Reporter: Konrad Windszus
>            Priority: Major
>
> It would be nice if the run mode support in both the JCR installer 
> (https://sling.apache.org/documentation/bundles/jcr-installer-provider.html#runmode-support)
>  as well as the File installer 
> (https://sling.apache.org/documentation/bundles/file-installer-provider.html#runmode-support)
>  would be enhanced so that apart from the AND logic (with ".", requiring all 
> run modes to be active) also an OR logic would be supported (i.e. to set a 
> certain config on an instance having runmode a or b) without being forced to 
> duplicate that config.
> As a syntax one could choose to use "|" as OR separator and keep using "." as 
> AND separator (similar to the syntax of 
> https://sling.apache.org/documentation/bundles/sling-settings-org-apache-sling-settings.html#defining-valid-run-modes).
>  OR should have lower precedence so that AND is processed first.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to