Package core plugins in Gerrit war and install them on init
This change adds a new Maven project 'gerrit-package-plugins' which adds the core plugin jars to the Gerrit war file. Inside of the resulting Gerrit war file the plugins are stored under 'WEB-INF/plugins/'. The init command will now look at this folder during the site initialization and offer the plugins for installation. Change-Id: Ia6c28ef13bbbb7a0358c84e785b8422a2e6a47b3
This commit is contained in:
@@ -61,6 +61,9 @@ public abstract class ConsoleUI {
|
||||
/** Display a header message before a series of prompts. */
|
||||
public abstract void header(String fmt, Object... args);
|
||||
|
||||
/** Display a message. */
|
||||
public abstract void message(String fmt, Object... args);
|
||||
|
||||
/** Request the user to answer a yes/no question. */
|
||||
public abstract boolean yesno(Boolean def, String fmt, Object... args);
|
||||
|
||||
@@ -215,6 +218,11 @@ public abstract class ConsoleUI {
|
||||
fmt = fmt.replaceAll("\n", "\n*** ");
|
||||
console.printf("\n*** " + fmt + "\n*** \n\n", args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void message(String fmt, Object... args) {
|
||||
console.printf(fmt, args);
|
||||
}
|
||||
}
|
||||
|
||||
private static class Batch extends ConsoleUI {
|
||||
@@ -250,5 +258,9 @@ public abstract class ConsoleUI {
|
||||
@Override
|
||||
public void header(String fmt, Object... args) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void message(String fmt, Object... args) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user