Daemon: Add flag to force PolyGerrit development mode

Frontend developers shouldn't even have to open Eclipse in order to
get started developing PolyGerrit: Eclipse is far from the most
popular frontend development environment, and setting it up for the
first time is an unnecessary barrier.

Add a flag --polygerrit-dev to the daemon command that does two
things:
1. Act as if gerrit.enablePolyGerrit is set to true, enabling the
   PolyGerrit UI.
2. Serve PolyGerrit from the local buck-out directory, as if it were
   launched from Eclipse, ignoring the version compiled into the war.

Change-Id: Ibfe92d3d53637c5c8424e3200791f28260c0c9fa
This commit is contained in:
Dave Borowitz
2015-11-15 17:10:57 -05:00
parent e1e1cdc5e0
commit f7c2cfa29b
5 changed files with 49 additions and 37 deletions

View File

@@ -324,7 +324,7 @@ public class WebAppInitializer extends GuiceServletContextListener
@Override
protected void configure() {
bind(GerritOptions.class)
.toInstance(new GerritOptions(config, false, false));
.toInstance(new GerritOptions(config, false, false, false));
}
});
modules.add(new GarbageCollectionModule());