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 <bd...@apache.org> on 2008/11/17 15:50:54 UTC

Making jcrinstall folder names runmode aware

Hi,

Currently the names of folders where jcrinstall looks for bundles and
configuration nodes are based on configurable regular expressions,
independent from the RunMode service.

Rethinking that, I'd like to introduce a runmode-based naming
convention, so that jcrinstall would be configured by default to look
in these folders, using the existing configuration mechanism:

  /libs/*/install   (* means "anything" here, not regexp notation)
  /libs/*/config
  (and same in /apps)

And jcrinstall would also look in these folders if the current active
run modes (as provided by the RunMode service) are "foo, bar"

  /libs/*/install.foo
  /libs/*/install.bar
  /libs/*/config.foo
  /libs/*/config.bar
  (and same in /apps)

I think this simplifies configuration, people can hopefully use the
defaults settings and drive the rest freely with run modes.

WDYT?
-Bertrand

Re: Making jcrinstall folder names runmode aware

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Mon, Nov 17, 2008 at 6:03 PM, Tobias Bocanegra
<to...@day.com> wrote:
> ...+1 good idea

Created https://issues.apache.org/jira/browse/SLING-738 to track this.

-Bertrand

Re: Making jcrinstall folder names runmode aware

Posted by Tobias Bocanegra <to...@day.com>.
On 11/17/08, Bertrand Delacretaz <bd...@apache.org> wrote:
> Hi,
>
>  Currently the names of folders where jcrinstall looks for bundles and
>  configuration nodes are based on configurable regular expressions,
>  independent from the RunMode service.
>
>  Rethinking that, I'd like to introduce a runmode-based naming
>  convention, so that jcrinstall would be configured by default to look
>  in these folders, using the existing configuration mechanism:
>
>   /libs/*/install   (* means "anything" here, not regexp notation)
>   /libs/*/config
>   (and same in /apps)
>
>  And jcrinstall would also look in these folders if the current active
>  run modes (as provided by the RunMode service) are "foo, bar"
>
>   /libs/*/install.foo
>   /libs/*/install.bar
>   /libs/*/config.foo
>   /libs/*/config.bar
>   (and same in /apps)
>
>  I think this simplifies configuration, people can hopefully use the
>  defaults settings and drive the rest freely with run modes.
>
>  WDYT?
+1 good idea