Skip to content

Commit d881bf6

Browse files
authored
Add gwt 2.11 sdk feature (#487)
* Added GWT SDK 2.11 plugin and feature * Automatic update (does it work?) now searches for GWT 2.11 * Add GWT 2.11 to tycho category file
1 parent 69ff577 commit d881bf6

File tree

14 files changed

+289
-1
lines changed

14 files changed

+289
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bin.includes = feature.xml,\
2+
feature.properties
3+
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
featureName = GWT 2.11.0 SDK
2+
providerName = GWT Eclipse Plugin
3+
description = Downloads the GWT 2.11.0 SDK library
4+
licenseURL = https://github.com/gwt-plugins/gwt-eclipse-plugin/blob/master/LICENSE.md
5+
6+
# "license" property - text of the "Feature Update License"
7+
# should be plain text version of license agreement pointed to be "licenseURL"
8+
license=\
9+
Eclipse Foundation Software User Agreement\n\
10+
April 9, 2014\n\
11+
\n\
12+
Usage Of Content\n\
13+
\n\
14+
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
15+
OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
16+
USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
17+
AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
18+
NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
19+
AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
20+
AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
21+
OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
22+
TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
23+
OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
24+
BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
25+
\n\
26+
Applicable Licenses\n\
27+
\n\
28+
Unless otherwise indicated, all Content made available by the\n\
29+
Eclipse Foundation is provided to you under the terms and conditions of\n\
30+
the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
31+
provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
32+
For purposes of the EPL, "Program" will mean the Content.\n\
33+
\n\
34+
Content includes, but is not limited to, source code, object code,\n\
35+
documentation and other files maintained in the Eclipse Foundation source code\n\
36+
repository ("Repository") in software modules ("Modules") and made available\n\
37+
as downloadable archives ("Downloads").\n\
38+
\n\
39+
\t- Content may be structured and packaged into modules to facilitate delivering,\n\
40+
\t extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
41+
\t plug-in fragments ("Fragments"), and features ("Features").\n\
42+
\t- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
43+
\t in a directory named "plugins".\n\
44+
\t- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
45+
\t Each Feature may be packaged as a sub-directory in a directory named "features".\n\
46+
\t Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
47+
\t numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
48+
\t- Features may also include other Features ("Included Features"). Within a Feature, files\n\
49+
\t named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
50+
\n\
51+
The terms and conditions governing Plug-ins and Fragments should be\n\
52+
contained in files named "about.html" ("Abouts"). The terms and\n\
53+
conditions governing Features and Included Features should be contained\n\
54+
in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
55+
Licenses may be located in any directory of a Download or Module\n\
56+
including, but not limited to the following locations:\n\
57+
\n\
58+
\t- The top-level (root) directory\n\
59+
\t- Plug-in and Fragment directories\n\
60+
\t- Inside Plug-ins and Fragments packaged as JARs\n\
61+
\t- Sub-directories of the directory named "src" of certain Plug-ins\n\
62+
\t- Feature directories\n\
63+
\n\
64+
Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
65+
Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
66+
Update License") during the installation process. If the Feature contains\n\
67+
Included Features, the Feature Update License should either provide you\n\
68+
with the terms and conditions governing the Included Features or inform\n\
69+
you where you can locate them. Feature Update Licenses may be found in\n\
70+
the "license" property of files named "feature.properties" found within a Feature.\n\
71+
Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
72+
terms and conditions (or references to such terms and conditions) that\n\
73+
govern your use of the associated Content in that directory.\n\
74+
\n\
75+
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
76+
TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
77+
SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
78+
\n\
79+
\t- Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
80+
\t- Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
81+
\t- Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
82+
\t- Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
83+
\t- Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
84+
\n\
85+
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
86+
TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
87+
is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
88+
govern that particular Content.\n\
89+
\n\
90+
\n\Use of Provisioning Technology\n\
91+
\n\
92+
The Eclipse Foundation makes available provisioning software, examples of which include,\n\
93+
but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
94+
the purpose of allowing users to install software, documentation, information and/or\n\
95+
other materials (collectively "Installable Software"). This capability is provided with\n\
96+
the intent of allowing such users to install, extend and update Eclipse-based products.\n\
97+
Information about packaging Installable Software is available at\n\
98+
http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
99+
\n\
100+
You may use Provisioning Technology to allow other parties to install Installable Software.\n\
101+
You shall be responsible for enabling the applicable license agreements relating to the\n\
102+
Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
103+
in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
104+
making it available in accordance with the Specification, you further acknowledge your\n\
105+
agreement to, and the acquisition of all necessary rights to permit the following:\n\
106+
\n\
107+
\t1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
108+
\t the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
109+
\t extending or updating the functionality of an Eclipse-based product.\n\
110+
\t2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
111+
\t Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
112+
\t3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
113+
\t govern the use of the Installable Software ("Installable Software Agreement") and such\n\
114+
\t Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
115+
\t with the Specification. Such Installable Software Agreement must inform the user of the\n\
116+
\t terms and conditions that govern the Installable Software and must solicit acceptance by\n\
117+
\t the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
118+
\t indication of agreement by the user, the provisioning Technology will complete installation\n\
119+
\t of the Installable Software.\n\
120+
\n\
121+
Cryptography\n\
122+
\n\
123+
Content may contain encryption software. The country in which you are\n\
124+
currently may have restrictions on the import, possession, and use,\n\
125+
and/or re-export to another country, of encryption software. BEFORE\n\
126+
using any encryption software, please check the country's laws,\n\
127+
regulations and policies concerning the import, possession, or use, and\n\
128+
re-export of encryption software, to see if this is permitted.\n\
129+
\n\
130+
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
131+
########### end of license property ##########################################
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<feature
3+
id="com.gwtplugins.eclipse.sdkbundle.gwt211.feature"
4+
label="%featureName"
5+
version="2.11.0.qualifier"
6+
provider-name="%providerName">
7+
8+
<description>
9+
%description
10+
</description>
11+
12+
<copyright>
13+
Copyright 2015 to 2017
14+
</copyright>
15+
16+
<license url="%licenseURL">
17+
%license
18+
</license>
19+
20+
<url>
21+
<update label="GWT Eclipse Plugin Update Site" url="http://storage.googleapis.com/gwt-eclipse-plugin/v3/release"/>
22+
</url>
23+
24+
<plugin
25+
id="com.gwtplugins.gwt.eclipse.sdkbundle.gwt211"
26+
download-size="0"
27+
install-size="0"
28+
version="0.0.0"/>
29+
30+
</feature>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>com.gwtplugins.eclipse</groupId>
8+
<artifactId>trunk</artifactId>
9+
<version>4.0.1-SNAPSHOT</version>
10+
<relativePath>../../</relativePath>
11+
</parent>
12+
13+
<artifactId>com.gwtplugins.eclipse.sdkbundle.gwt211.feature</artifactId>
14+
<version>2.11.0-SNAPSHOT</version>
15+
<packaging>eclipse-feature</packaging>
16+
17+
</project>

plugins/com.gwtplugins.gdt.eclipse.suite.update/src/com/google/gdt/eclipse/suite/update/GdtExtPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Sdk doFindSdk(IJavaProject project) throws JavaModelException {
5959
public static final String FEATURE_UPDATE_SITE_URL;
6060
public static final PluginVersionIdentifier FEATURE_VERSION;
6161
public static final String PLUGIN_ID = "com.gwtplugins.gdt.eclipse.suite.update";
62-
public static final String GWT_SDK_BUNDLE_FEATURE_ID = "com.gwtplugins.gwt.eclipse.sdkbundle.gwt29.feature";
62+
public static final String GWT_SDK_BUNDLE_FEATURE_ID = "com.gwtplugins.gwt.eclipse.sdkbundle.gwt211.feature";
6363

6464
private static BundleContext context;
6565
private static FeatureUpdateManager featureUpdateManager;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: %pluginName
4+
Bundle-SymbolicName: com.gwtplugins.gwt.eclipse.sdkbundle.gwt211;singleton:=true
5+
Bundle-Version: 2.11.0.qualifier
6+
Bundle-Vendor: %providerName
7+
Require-Bundle: org.eclipse.core.runtime,
8+
com.gwtplugins.gwt.eclipse.core;visibility:=reexport
9+
Bundle-RequiredExecutionEnvironment: JavaSE-11
10+
Bundle-ActivationPolicy: lazy
11+
Eclipse-BundleShape: dir
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sdkBundlePath=gwt-2.11.0
2+
sdkType=GWT 2.11.0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
output.. = bin/
2+
bin.includes = META-INF/,\
3+
plugin.xml,\
4+
SdkBundleRegistrant.properties,\
5+
gwt-2.11.0/
6+
javacSource=11
7+
javacTarget=11
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pluginName=GWT 2.11.0 SDK
2+
providerName=GWT Eclipse Plugin
3+
4+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.0"?>
3+
<plugin>
4+
5+
</plugin>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>com.gwtplugins.eclipse</groupId>
8+
<artifactId>trunk</artifactId>
9+
<version>4.0.1-SNAPSHOT</version>
10+
<relativePath>../../</relativePath>
11+
</parent>
12+
13+
<artifactId>com.gwtplugins.gwt.eclipse.sdkbundle.gwt211</artifactId>
14+
<version>2.11.0-SNAPSHOT</version>
15+
<packaging>eclipse-plugin</packaging>
16+
17+
<build>
18+
<plugins>
19+
<plugin>
20+
<groupId>com.googlecode.maven-download-plugin</groupId>
21+
<artifactId>download-maven-plugin</artifactId>
22+
<version>1.6.8</version>
23+
<executions>
24+
<execution>
25+
<id>get-gwt</id>
26+
<phase>generate-resources</phase>
27+
<goals>
28+
<goal>wget</goal>
29+
</goals>
30+
<configuration>
31+
<url>https://github.com/gwtproject/gwt/releases/download/2.11.0/gwt-2.11.0.zip</url>
32+
<unpack>true</unpack>
33+
<overwrite>true</overwrite>
34+
<outputFileName>gwt-2.11.0.zip</outputFileName>
35+
<outputDirectory>${basedir}</outputDirectory>
36+
</configuration>
37+
</execution>
38+
</executions>
39+
</plugin>
40+
</plugins>
41+
42+
<pluginManagement>
43+
<plugins>
44+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build
45+
itself. -->
46+
<plugin>
47+
<groupId>org.eclipse.m2e</groupId>
48+
<artifactId>lifecycle-mapping</artifactId>
49+
<version>1.0.0</version>
50+
<configuration>
51+
<lifecycleMappingMetadata>
52+
<pluginExecutions>
53+
<pluginExecution>
54+
<pluginExecutionFilter>
55+
<groupId>com.googlecode.maven-download-plugin</groupId>
56+
<artifactId>download-maven-plugin</artifactId>
57+
<versionRange>[1.2.1,)</versionRange>
58+
<goals>
59+
<goal>wget</goal>
60+
</goals>
61+
</pluginExecutionFilter>
62+
<action>
63+
<ignore></ignore>
64+
</action>
65+
</pluginExecution>
66+
</pluginExecutions>
67+
</lifecycleMappingMetadata>
68+
</configuration>
69+
</plugin>
70+
</plugins>
71+
</pluginManagement>
72+
</build>
73+
</project>

plugins/com.gwtplugins.gwt.eclipse.sdkbundle.gwt211/src/PLACEHODER.md

Whitespace-only changes.

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<module>features/com.gwtplugins.eclipse.sdkbundle.gwt27.feature</module>
4545
<module>features/com.gwtplugins.eclipse.sdkbundle.gwt28.feature</module>
4646
<module>features/com.gwtplugins.eclipse.sdkbundle.gwt29.feature</module>
47+
<module>features/com.gwtplugins.eclipse.sdkbundle.gwt211.feature</module>
4748

4849
<!-- Core Plugins -->
4950
<module>plugins/com.gwtplugins.gdt.eclipse.core</module>
@@ -82,6 +83,7 @@
8283
<module>plugins/com.gwtplugins.gwt.eclipse.sdkbundle.gwt27</module>
8384
<module>plugins/com.gwtplugins.gwt.eclipse.sdkbundle.gwt28</module>
8485
<module>plugins/com.gwtplugins.gwt.eclipse.sdkbundle.gwt29</module>
86+
<module>plugins/com.gwtplugins.gwt.eclipse.sdkbundle.gwt211</module>
8587

8688
<!-- Testing utils -->
8789
<module>plugins/com.gwtplugins.gcp.eclipse.testing</module>

repo/category.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<feature id="com.gwtplugins.eclipse.sdkbundle.gwt29.feature" version="2.9.0.qualifier">
1313
<category name="GWT_SDK"/>
1414
</feature>
15+
<feature id="com.gwtplugins.eclipse.sdkbundle.gwt211.feature" version="2.11.0.qualifier">
16+
<category name="GWT_SDK"/>
17+
</feature>
1518
<category-def name="GWT" label="GWT Eclipse Plugin"/>
1619
<category-def name="GWT" label="GWT Plugin for Eclipse"/>
1720
<category-def name="GWT_SDK" label="GWT SDK">

0 commit comments

Comments
 (0)