Miscellaneous tiny cleanups in gerrit-pgm

Change-Id: Ie03a7502d143d3f43a50cae3705f62601f224abd
This commit is contained in:
Dave Borowitz 2012-05-22 11:12:48 -07:00
parent 34d4d1929a
commit 5e43b81607
4 changed files with 3 additions and 2 deletions

View File

@ -157,6 +157,7 @@ public class Daemon extends SiteProgram {
manager.start(); manager.start();
RuntimeShutdown.add(new Runnable() { RuntimeShutdown.add(new Runnable() {
@Override
public void run() { public void run() {
log.info("caught shutdown, cleaning up"); log.info("caught shutdown, cleaning up");
if (runId != null) { if (runId != null) {

View File

@ -27,7 +27,6 @@ import com.google.gerrit.reviewdb.client.Project;
import com.google.gerrit.reviewdb.server.ReviewDb; import com.google.gerrit.reviewdb.server.ReviewDb;
import com.google.gerrit.server.account.AccountCacheImpl; import com.google.gerrit.server.account.AccountCacheImpl;
import com.google.gerrit.server.account.GroupCacheImpl; 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.ApprovalTypesProvider;
import com.google.gerrit.server.config.CanonicalWebUrl; import com.google.gerrit.server.config.CanonicalWebUrl;
import com.google.gerrit.server.config.CanonicalWebUrlProvider; import com.google.gerrit.server.config.CanonicalWebUrlProvider;

View File

@ -47,6 +47,7 @@ public class Gsql extends SiteProgram {
manager.add(dbInjector); manager.add(dbInjector);
manager.start(); manager.start();
RuntimeShutdown.add(new Runnable() { RuntimeShutdown.add(new Runnable() {
@Override
public void run() { public void run() {
try { try {
System.in.close(); System.in.close();

View File

@ -43,7 +43,7 @@ public class Rulec extends SiteProgram {
@Option(name = "--all", usage = "recompile all rules") @Option(name = "--all", usage = "recompile all rules")
private boolean all; private boolean all;
@Option(name = "--quiet", usage = "supress some messsages") @Option(name = "--quiet", usage = "suppress some messages")
private boolean quiet; private boolean quiet;
@Argument(index = 0, multiValued = true, metaVar = "PROJECT", usage = "project to compile rules for") @Argument(index = 0, multiValued = true, metaVar = "PROJECT", usage = "project to compile rules for")