Miscellaneous tiny cleanups in gerrit-pgm
Change-Id: Ie03a7502d143d3f43a50cae3705f62601f224abd
This commit is contained in:
parent
34d4d1929a
commit
5e43b81607
@ -157,6 +157,7 @@ public class Daemon extends SiteProgram {
|
||||
|
||||
manager.start();
|
||||
RuntimeShutdown.add(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
log.info("caught shutdown, cleaning up");
|
||||
if (runId != null) {
|
||||
|
@ -27,7 +27,6 @@ import com.google.gerrit.reviewdb.client.Project;
|
||||
import com.google.gerrit.reviewdb.server.ReviewDb;
|
||||
import com.google.gerrit.server.account.AccountCacheImpl;
|
||||
import com.google.gerrit.server.account.GroupCacheImpl;
|
||||
import com.google.gerrit.server.cache.CachePool;
|
||||
import com.google.gerrit.server.config.ApprovalTypesProvider;
|
||||
import com.google.gerrit.server.config.CanonicalWebUrl;
|
||||
import com.google.gerrit.server.config.CanonicalWebUrlProvider;
|
||||
|
@ -47,6 +47,7 @@ public class Gsql extends SiteProgram {
|
||||
manager.add(dbInjector);
|
||||
manager.start();
|
||||
RuntimeShutdown.add(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
System.in.close();
|
||||
|
@ -43,7 +43,7 @@ public class Rulec extends SiteProgram {
|
||||
@Option(name = "--all", usage = "recompile all rules")
|
||||
private boolean all;
|
||||
|
||||
@Option(name = "--quiet", usage = "supress some messsages")
|
||||
@Option(name = "--quiet", usage = "suppress some messages")
|
||||
private boolean quiet;
|
||||
|
||||
@Argument(index = 0, multiValued = true, metaVar = "PROJECT", usage = "project to compile rules for")
|
||||
|
Loading…
Reference in New Issue
Block a user