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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user