Hi,
In the context of https://issues.apache.org/jira/browse/SLING-9031 and 
https://issues.apache.org/jira/browse/SLING-8548 I proposed a new way how 
artifacts/configurations can be provided run mode specific by providers (file 
and jcr): https://github.com/apache/sling-org-apache-sling-installer-core/pull/7

Basically the grammar would look like this 

run mode string ::= disjunctions
disjunctions ::= conjunctions { "," conjunctions }
conjunctions ::= conjunction { '.' conjunction }
conjunction ::= notrunmode | runmode
notrunmode ::= '-' runmode

Currently only operator "." is supported. With that PR also "," and "-". As all 
should not appear in run mode names I don't see any backwards compatibility 
issues but a greatly enhanced way of reducing duplication as it is easier to 
specify e.g. a bundle for all run modes except one e.g. via 
"install.-prod".

I would be glad to get some more feedback before applying the PR.
Thanks in advance,
konrad

Reply via email to