Control which plugins will be auto installed on auto init

Use the system property 'gerrit.install_plugins' to control which
of the packaged plugins will be installed during auto site init
in a servlet container.

When 'gerrit.install_plugins' property is not defined then all packaged
plugins will be installed. If it is present then it is parsed as a
comma separated list of plugin names to install. Defining an empty
string as the property value means that no plugin will be installed.

Change-Id: I52881c9677bc9cc1e51c46c2c2ce4558c79b9a3e
This commit is contained in:
Saša Živkov
2014-02-13 16:10:38 +01:00
parent e2a1e7ef34
commit 9f058b37bc
5 changed files with 51 additions and 14 deletions

View File

@@ -4,9 +4,11 @@
Gerrit supports automatic site initialization on server startup
when Gerrit runs in a servlet container. Both creation of a new site
and upgrade of an existing site are supported. All packaged plugins
will be installed when Gerrit is deployed in a servlet container and the
location of the Gerrit distribution can be determined at runtime.
and upgrade of an existing site are supported. By default, all packaged
plugins will be installed when Gerrit is deployed in a servlet container
and the location of the Gerrit distribution can be determined at
runtime. It is also possible to install only a subset of packaged
plugins or not install any plugin.
This feature may be useful for such setups where Gerrit administrators
don't have direct access to the database and the file system of the
@@ -50,6 +52,11 @@ creation). In order to auto initialize Gerrit with an embedded H2
database use the `gerrit.site_path` to define the location of the review
site and don't define a JNDI resource with a URL under that path.
If the 'gerrit.install_plugins' property is not defined then all packaged
plugins will be installed. If it is defined then it is parsed as a
comma separated list of plugin names to install. If the value is an
empty string then no plugin will be installed.
=== Example 1
Prepare Tomcat so that a site is initialized at a given path using