commit | b82f8e99775bb6fae8a1ac578549f094e78e5232 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <edwin.kempin@sap.com> | Tue Jan 21 17:06:55 2014 +0100 |
committer | Edwin Kempin <edwin.kempin@sap.com> | Tue Jan 21 17:06:55 2014 +0100 |
tree | adf026e367af6acd0e10ffc965af0210917a531b | |
parent | 3050602bfb5777f8d85c78d07be6d4e0b61fdbbd [diff] |
InitRTC has to do modifications of gerrit.config in run() method Modifications of gerrit.config done in the postRun() method are not persisted in the review site. Change-Id: I23e8521c9d72d65b21a701a8db97ccb498bd3afd Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/rtc/InitRTC.java b/src/main/java/com/googlesource/gerrit/plugins/hooks/rtc/InitRTC.java index 6cc0639..6f0cd2f 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/hooks/rtc/InitRTC.java +++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/rtc/InitRTC.java
@@ -51,8 +51,9 @@ this.sections = sections; } - public void postRun() throws IOException, ConfigInvalidException { - super.postRun(); + @Override + public void run() throws IOException, ConfigInvalidException { + super.run(); this.rtc = sections.get(pluginName, null); this.rtcComment =