Merge "Fix formatting of code examples in plugin documentation"

This commit is contained in:
Shawn Pearce
2013-09-27 05:59:48 +00:00
committed by Gerrit Code Review

View File

@@ -169,9 +169,9 @@ configuration file:
[source,python] [source,python]
---- ----
manifest_entries = [ manifest_entries = [
'Gerrit-PluginName: name', 'Gerrit-PluginName: name',
] ]
---- ----
[[reload_method]] [[reload_method]]
@@ -399,13 +399,13 @@ plugin to parse the `gerrit.config` file on its own:
[source,java] [source,java]
---- ----
@Inject @Inject
private com.google.gerrit.server.config.PluginConfigFactory cfg; private com.google.gerrit.server.config.PluginConfigFactory cfg;
... ...
String language = cfg.get("helloworld") String language = cfg.get("helloworld")
.getString("language", "English"); .getString("language", "English");
---- ----
[[project-specific-configuration]] [[project-specific-configuration]]
@@ -434,13 +434,13 @@ is no need for a plugin to parse the `project.config` file on its own:
[source,java] [source,java]
---- ----
@Inject @Inject
private com.google.gerrit.server.config.PluginConfigFactory cfg; private com.google.gerrit.server.config.PluginConfigFactory cfg;
... ...
boolean enabled = cfg.get(project, "helloworld") boolean enabled = cfg.get(project, "helloworld")
.getBoolean("enabled", false); .getBoolean("enabled", false);
---- ----
It is also possible to get missing configuration parameters inherited It is also possible to get missing configuration parameters inherited
@@ -448,13 +448,13 @@ from the parent projects:
[source,java] [source,java]
---- ----
@Inject @Inject
private com.google.gerrit.server.config.PluginConfigFactory cfg; private com.google.gerrit.server.config.PluginConfigFactory cfg;
... ...
boolean enabled = cfg.getWithInheritance(project, "helloworld") boolean enabled = cfg.getWithInheritance(project, "helloworld")
.getBoolean("enabled", false); .getBoolean("enabled", false);
---- ----
Project owners can edit the project configuration by fetching the Project owners can edit the project configuration by fetching the