Merge "Update plugin-gwt-archetype to match current implementation" into stable-2.6

This commit is contained in:
Shawn Pearce 2012-11-16 16:29:51 -08:00 committed by Gerrit Code Review
commit ea83f2439a
2 changed files with 5 additions and 8 deletions

View File

@ -41,8 +41,6 @@ limitations under the License.
</includes>
<archive>
<manifestEntries>
<Gerrit-Module>${package}.Module</Gerrit-Module>
<Implementation-Vendor>${Implementation-Vendor}</Implementation-Vendor>
<Implementation-URL>${Implementation-Url}</Implementation-URL>

View File

@ -14,13 +14,12 @@
package ${package};
import com.google.inject.AbstractModule;
import com.google.gerrit.extensions.webui.WebUiPlugin;
import com.google.gerrit.extensions.webui.GwtPlugin;
import com.google.gerrit.extensions.annotations.Listen;
class Module extends AbstractModule {
@Override
protected void configure() {
bind(WebUiPlugin.class).toInstance(new GwtPlugin("hello_gwt_plugins"));
@Listen
public class MyExtension extends GwtPlugin {
public MyExtension() {
super("hello_gwt_plugins");
}
}