RETIRED, Gerrit as used by OpenStack
Go to file
Luca Milanesio 737285df3f Allow plugins to contribute InitStep to Gerrit init.
Plugin has to include a class that implements
com.google.gerrit.pgm.init.InitStep and specifying
the class name into the Plugin MANIFEST.MF.

Plugin InitStep is getting instantiated using the
Gerrit PGM injector and then is able to access
the same init objects.

Example:
--------
public class InitJira implements InitStep {
  private ConsoleUI ui;

  @Inject
  public InitJira(final ConsoleUI ui, final Section.Factory sections) {
    this.ui = ui;
    this.sections = sections;
  }

  @Override
  public void run() throws Exception {
    ui.header("Jira integration");
    // Jira-specific init steps.

    Section jira = sections.get("link", "jira");
    // Jira-specific link expansions
  }
}

MANIFEST.MF:
------------
Gerrit-InitStep: com.googlesource.plugins.jira.InitJira

Change-Id: I84fcb9acd6845c706961657219a14570e2060b0f
Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
2012-10-22 10:07:31 -07:00
contrib Add an exponentially rolling garbage collection script 2012-06-14 18:24:17 -06:00
Documentation Allow plugins to contribute InitStep to Gerrit init. 2012-10-22 10:07:31 -07:00
gerrit-antlr Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-cache-h2 Fix various warnings 2012-10-18 13:38:51 +02:00
gerrit-common JavaScipt and GWT based UI plugin support 2012-10-21 16:50:03 -07:00
gerrit-extension-api JavaScipt and GWT based UI plugin support 2012-10-21 16:50:03 -07:00
gerrit-gwtdebug Fix warnings caused by wrong BouncyCastle version in pom files 2012-10-21 20:14:37 -07:00
gerrit-gwtui JavaScipt and GWT based UI plugin support 2012-10-21 16:50:03 -07:00
gerrit-httpd JavaScipt and GWT based UI plugin support 2012-10-21 16:50:03 -07:00
gerrit-launcher Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-main Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-openid Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-package-plugins Merge branch 'stable-2.5' 2012-10-17 14:45:10 +02:00
gerrit-patch-commonsnet Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-patch-jgit Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-pgm Allow plugins to contribute InitStep to Gerrit init. 2012-10-22 10:07:31 -07:00
gerrit-plugin-api Allow plugins to contribute InitStep to Gerrit init. 2012-10-22 10:07:31 -07:00
gerrit-plugin-archetype Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-plugin-gwtui JavaScipt and GWT based UI plugin support 2012-10-21 16:50:03 -07:00
gerrit-prettify Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-reviewdb Add submit strategy that rebases the change if necessary 2012-10-21 11:31:02 -07:00
gerrit-server Fix warnings caused by wrong BouncyCastle version in pom files 2012-10-21 20:14:37 -07:00
gerrit-sshd Fix various warnings 2012-10-18 13:38:51 +02:00
gerrit-util-cli Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-util-ssl Update versions in pom's to start Gerrit 2.6 development 2012-08-22 14:09:52 +02:00
gerrit-war Fix warnings caused by wrong BouncyCastle version in pom files 2012-10-21 20:14:37 -07:00
ReleaseNotes Merge branch 'stable-2.5' 2012-10-17 14:45:10 +02:00
tools Exclude pom in archetype resources from version replacement 2012-07-31 15:22:58 +02:00
.gitignore Add Intellij IDEA files to ignore list 2012-05-03 13:17:43 -07:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
pom.xml Fix warnings caused by wrong BouncyCastle version in pom files 2012-10-21 20:14:37 -07:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00