Update to GWT 2.0.0
Unfortunately GWT now requires the gwt.codesvr query parameter in the URL anytime we load our host page with GWT code in it. To ensure it is always present we save it into a cookie during startup and redirect back to ourselves with the parameter added back into the URL if it was not already present. Since this block of JavaScript isn't needed in production we strip it out of the host page unless our magical system property has been set to true indicating we were launched through our debug launcher. We also no longer strongly name the nocache file if we are in the GWT development mode. Change-Id: Ia7a91f66e21088ba269410d76461fe0be4480825 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -344,6 +344,8 @@ public class GerritDebugLauncher extends ServletContainerLauncher {
|
||||
System.getProperty("build.compiler",
|
||||
"org.eclipse.jdt.core.JDTCompilerAdapter");
|
||||
System.setProperty("build.compiler", antJavaC);
|
||||
|
||||
System.setProperty("Gerrit.GwtDevMode", "" + true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -378,6 +380,10 @@ public class GerritDebugLauncher extends ServletContainerLauncher {
|
||||
File app = new File(top, "gerrit-war/src/main/webapp");
|
||||
File webxml = new File(app, "WEB-INF/web.xml");
|
||||
|
||||
// Jetty won't start unless this directory exists.
|
||||
if (!warDir.exists() && !warDir.mkdirs())
|
||||
logger.branch(TreeLogger.ERROR, "Cannot create "+warDir, null);
|
||||
|
||||
// Create a new web app in the war directory.
|
||||
//
|
||||
WebAppContext wac =
|
||||
|
Reference in New Issue
Block a user