Merge "Populate version from HTML and not compiled into GWT JS"

This commit is contained in:
Shawn Pearce
2013-05-10 21:44:49 +00:00
committed by Gerrit Code Review
6 changed files with 10 additions and 44 deletions

View File

@@ -16,10 +16,7 @@ gwt_module(
java_library(
name = 'server',
srcs = glob(
[SRC + 'common/**/*.java'],
excludes = [SRC + 'common/ClientVersion.java'],
),
srcs = glob([SRC + 'common/**/*.java']),
deps = [
'//gerrit-patch-jgit:server',
'//gerrit-prettify:server',

View File

@@ -1,24 +0,0 @@
// Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.common;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.TextResource;
public interface ClientVersion extends ClientBundle {
/** Version number of this client software build. */
@Source("Version")
TextResource version();
}

View File

@@ -21,6 +21,7 @@ import java.util.List;
/** Data sent as part of the host page, to bootstrap the UI. */
public class HostPageData {
public String version;
public Account account;
public AccountDiffPreference accountDiffPref;
public String xGerritAuth;