From c070cb4932a3f2e4fa783a1c9a756025bfb89323 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 2 May 2011 14:43:51 +0000 Subject: [PATCH] Change default gwt version to 2.2.0, a classifier will be produced for 2.0.0 compatibility --- gwtquery-core-2.0.0/pom.xml | 112 ++++++++++++++++++ .../query/linker/IFrameWithDocTypeLinker.java | 44 +++++++ pom.xml | 6 +- 3 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 gwtquery-core-2.0.0/pom.xml create mode 100644 gwtquery-core-2.0.0/src/main/java/com/google/gwt/query/linker/IFrameWithDocTypeLinker.java diff --git a/gwtquery-core-2.0.0/pom.xml b/gwtquery-core-2.0.0/pom.xml new file mode 100644 index 00000000..0787c5c8 --- /dev/null +++ b/gwtquery-core-2.0.0/pom.xml @@ -0,0 +1,112 @@ + + + 4.0.0 + + com.googlecode.gwtquery + gwtquery-project + 1.0.0-SNAPSHOT + + + Generates an artifact compiled with a concrete gwt version specified in the artifactId + 2.0.0 + jar + Gwt Query Core API for gwt-${artifactId} + + + + com.googlecode.gwtquery + gwtquery + ${version} + provided + + + com.google.gwt + gwt-user + ${artifactId} + provided + + + com.google.gwt + gwt-dev + ${artifactId} + provided + + + + + gwtquery-${version}-${artifactId} + + + + maven-deploy-plugin + + + deploy + + deploy-file + + + ${project.build.directory}/gwtquery-${version}-${artifactId}.jar + ${repoId} + ${repoUrl} + jar + gwtquery + ${groupId} + ${version} + ${artifactId} + true + ${repoUniqueVers} + + + + + true + + + + + maven-dependency-plugin + + + unpack-dependencies + generate-resources + + com.googlecode.gwtquery,com.googlecode.gwtquery.plugins + gwtquery + true + **/*.java,**/*.xml,**/*.html,**/*.css,**/*.jpg,**/*.png,**/*.gif + **/IFrameWithDocTypeLinker.java + ${project.build.directory}/generated-resources + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-sources + generate-sources + + add-source + + + + ${project.build.directory}/generated-resources + + + + + + + + + + ${project.build.directory}/generated-resources/ + + + + + diff --git a/gwtquery-core-2.0.0/src/main/java/com/google/gwt/query/linker/IFrameWithDocTypeLinker.java b/gwtquery-core-2.0.0/src/main/java/com/google/gwt/query/linker/IFrameWithDocTypeLinker.java new file mode 100644 index 00000000..fca45d43 --- /dev/null +++ b/gwtquery-core-2.0.0/src/main/java/com/google/gwt/query/linker/IFrameWithDocTypeLinker.java @@ -0,0 +1,44 @@ +/* + * Copyright 2009 Google Inc. + * + * 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.gwt.query.linker; + +import com.google.gwt.core.ext.LinkerContext; +import com.google.gwt.core.ext.TreeLogger; +import com.google.gwt.core.linker.IFrameLinker; +import com.google.gwt.core.ext.linker.LinkerOrder; + +/** + * Adds doctype to the iframe used to load the application. + * Without this code, IE8 does not enable document.querySelectorAll feature. + */ +@LinkerOrder(LinkerOrder.Order.PRIMARY) +public class IFrameWithDocTypeLinker extends IFrameLinker { + + private static final String DOCTYPE = "\n"; + + protected String getModulePrefix(TreeLogger logger, LinkerContext context, + String strongName) { + return DOCTYPE + super.getModulePrefix(logger, context, strongName); + } + + @Override + protected String getModulePrefix(TreeLogger logger, LinkerContext context, + String strongName, int numFragments) { + return DOCTYPE + + super.getModulePrefix(logger, context, strongName, numFragments); + } +} + diff --git a/pom.xml b/pom.xml index 1fd17968..c7ae4c38 100644 --- a/pom.xml +++ b/pom.xml @@ -66,7 +66,7 @@ gwtquery-core - gwtquery-core-2.2.0 + gwtquery-core-2.0.0 @@ -159,11 +159,11 @@ - 2.1.1 + 2.2.0 INFO OBF - 2.1.0-1 + 2.2.0 https://oss.sonatype.org/content/repositories/snapshots sonatype-nexus-snapshots false -- 2.39.5