Yes, this is only leveraged by File and JCR Provider in https://github.com/apache/sling-org-apache-sling-installer-provider-jcr/pull/5 <https://github.com/apache/sling-org-apache-sling-installer-provider-jcr/pull/5> and https://github.com/apache/sling-org-apache-sling-installer-provider-file/pull/3 <https://github.com/apache/sling-org-apache-sling-installer-provider-file/pull/3>. But as this Utility class (RunModeSupport https://github.com/apache/sling-org-apache-sling-installer-core/pull/7/files#diff-ac0cacf223d10bbf8c8eb4204053ae92 <https://github.com/apache/sling-org-apache-sling-installer-core/pull/7/files#diff-ac0cacf223d10bbf8c8eb4204053ae92>) is exported, others may leverage the same logic.
Konrad > On 29. Jun 2020, at 16:06, Robert Munteanu <[email protected]> wrote: > > Hi Konrad, > > On Mon, 2020-06-29 at 12:46 +0200, Konrad Windszus wrote: >> 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". > > Just to make sure I understand, would this surface only in various > installer providers? > > Thanks, > Robert >
