Rename gerrit module to gerrit_ui
This frees up the name 'gerrit' in the top level page, making it available for us to start publishing a JavaScript native API for plugins to connect with the UI. Change-Id: I71f374d7231859dc1ed7d8a0df27759dbfc1315f
This commit is contained in:
parent
073da8a50a
commit
1915b91937
@ -232,7 +232,7 @@ limitations under the License.
|
||||
<configuration>
|
||||
<target>
|
||||
<property name="dst" location="${project.build.directory}/${project.build.finalName}"/>
|
||||
<property name="app" location="${dst}/gerrit"/>
|
||||
<property name="app" location="${dst}/gerrit_ui"/>
|
||||
|
||||
<mkdir dir="${app}"/>
|
||||
<apply executable="gzip" addsourcefile="false">
|
||||
@ -257,7 +257,7 @@ limitations under the License.
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<configuration>
|
||||
<packagingExcludes>WEB-INF/classes/**,WEB-INF/lib/**</packagingExcludes>
|
||||
<packagingExcludes>WEB-INF/classes/**,WEB-INF/deploy/**,WEB-INF/lib/**</packagingExcludes>
|
||||
<attachClasses>true</attachClasses>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
|
@ -13,7 +13,7 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<module rename-to="gerrit">
|
||||
<module rename-to="gerrit_ui">
|
||||
<inherits name='com.google.gwt.editor.Editor'/>
|
||||
<inherits name='com.google.gwt.user.User'/>
|
||||
<inherits name='com.google.gwt.resources.Resources'/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<module rename-to="gerrit">
|
||||
<module rename-to="gerrit_ui">
|
||||
<inherits name='com.google.gerrit.GerritGwtUI'/>
|
||||
<set-property name="user.agent" value="gecko1_8" />
|
||||
<set-property name="locale" value="default" />
|
||||
|
@ -13,7 +13,7 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<module rename-to="gerrit">
|
||||
<module rename-to="gerrit_ui">
|
||||
<inherits name='com.google.gerrit.GerritGwtUI'/>
|
||||
<set-property name="user.agent" value="safari" />
|
||||
<set-property name="locale" value="default" />
|
||||
|
@ -102,7 +102,7 @@ public class HostPageServlet extends HttpServlet {
|
||||
throw new ServletException("No " + HPD_ID + " in " + pageName);
|
||||
}
|
||||
|
||||
String src = "gerrit/gerrit.nocache.js";
|
||||
String src = "gerrit_ui/gerrit_ui.nocache.js";
|
||||
if (!IS_DEV) {
|
||||
Element devmode = HtmlDomUtil.find(template, "gwtdevmode");
|
||||
if (devmode != null) {
|
||||
@ -132,7 +132,7 @@ public class HostPageServlet extends HttpServlet {
|
||||
}
|
||||
|
||||
noCacheName = src;
|
||||
selector = new PermutationSelector("gerrit");
|
||||
selector = new PermutationSelector("gerrit_ui");
|
||||
if (checkUserAgent && !IS_DEV) {
|
||||
selector.init(servletContext);
|
||||
}
|
||||
|
@ -491,7 +491,7 @@ public class JettyServer {
|
||||
for (File e : entries) {
|
||||
if (e.isDirectory() /* must be a directory */
|
||||
&& e.getName().startsWith("gerrit-gwtui-")
|
||||
&& new File(e, "gerrit/gerrit.nocache.js").isFile()) {
|
||||
&& new File(e, "gerrit_ui/gerrit_ui.nocache.js").isFile()) {
|
||||
return Resource.newResource(e.toURI());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user