Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit 59f1e40

Browse files
committed
Extract gwt-resources-core from gwt-resources
1 parent 2554f7f commit 59f1e40

39 files changed

+129
-47
lines changed

user/gwt-resources-core/pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<artifactId>gwt-user-parent</artifactId>
8+
<groupId>com.google.gwt.user</groupId>
9+
<version>2.6.0-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>gwt-resources-core</artifactId>
13+
14+
<build>
15+
<resources>
16+
<resource>
17+
<directory>src/main/resources</directory>
18+
</resource>
19+
<!-- embed sources in the JAR -->
20+
<resource>
21+
<directory>src/main/java</directory>
22+
</resource>
23+
</resources>
24+
<testResources>
25+
<testResource>
26+
<directory>src/test/resources</directory>
27+
</testResource>
28+
<!-- include sources for the tests -->
29+
<testResource>
30+
<directory>src/test/java</directory>
31+
</testResource>
32+
</testResources>
33+
</build>
34+
35+
<dependencies>
36+
<!-- SafeUri and UriUtils -->
37+
<dependency>
38+
<groupId>com.google.gwt.user</groupId>
39+
<artifactId>gwt-safehtml-client</artifactId>
40+
<version>${project.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>com.google.gwt.dev</groupId>
44+
<artifactId>gwt-dev-ext</artifactId>
45+
<version>${project.version}</version>
46+
</dependency>
47+
</dependencies>
48+
</project>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<!-- -->
2+
<!-- Copyright 2008 Google Inc. -->
3+
<!-- Licensed under the Apache License, Version 2.0 (the "License"); you -->
4+
<!-- may not use this file except in compliance with the License. You may -->
5+
<!-- may obtain a copy of the License at -->
6+
<!-- -->
7+
<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
8+
<!-- -->
9+
<!-- Unless required by applicable law or agreed to in writing, software -->
10+
<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
11+
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -->
12+
<!-- implied. License for the specific language governing permissions and -->
13+
<!-- limitations under the License. -->
14+
15+
<!-- ClientBundle supports renaming files with strong names at compile time -->
16+
<module>
17+
<!-- Pull in the necessary base support, including user.agent detection -->
18+
<inherits name="com.google.gwt.core.Core" />
19+
<inherits name="com.google.gwt.useragent.UserAgent" />
20+
<!-- Pull in SafeUri and SafeUriUtils -->
21+
<inherits name="com.google.gwt.safehtml.SafeHtml" />
22+
23+
<!-- This acts as a switch to disable the use of data: URLs -->
24+
<define-property name="ClientBundle.enableInlining" values="true,false" />
25+
<set-property name="ClientBundle.enableInlining" value="true" />
26+
27+
<!-- Specify the default behavior which should work on all browsers -->
28+
<generate-with
29+
class="com.google.gwt.resources.rebind.context.StaticClientBundleGenerator">
30+
31+
<!-- We have to specify on which types to execute the Generator -->
32+
<when-type-assignable
33+
class="com.google.gwt.resources.client.ClientBundle" />
34+
</generate-with>
35+
36+
<!-- Last-matches wins, so this will selectively override the previous rule -->
37+
<generate-with
38+
class="com.google.gwt.resources.rebind.context.InlineClientBundleGenerator">
39+
40+
<!-- We have a number of conditions that must be satisfied -->
41+
<all>
42+
<!-- Is inlining enabled? -->
43+
<when-property-is name="ClientBundle.enableInlining" value="true" />
44+
45+
<!-- Again, it's necessary to specify which types the generator runs on -->
46+
<when-type-assignable
47+
class="com.google.gwt.resources.client.ClientBundle" />
48+
49+
<!-- Only some browsers support RFC 2397 data: URLs -->
50+
<any>
51+
<when-property-is name="user.agent" value="safari" />
52+
<when-property-is name="user.agent" value="opera" />
53+
<when-property-is name="user.agent" value="gecko1_8" />
54+
<when-property-is name="user.agent" value="ie8" />
55+
<when-property-is name="user.agent" value="ie9" />
56+
</any>
57+
</all>
58+
</generate-with>
59+
60+
<!-- This can be used to disable the use of strongly-named files -->
61+
<define-configuration-property name="ClientBundle.enableRenaming" is-multi-valued="false" />
62+
<set-configuration-property name="ClientBundle.enableRenaming" value="true" />
63+
</module>

user/gwt-resources/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@
3333
</build>
3434

3535
<dependencies>
36+
<dependency>
37+
<groupId>com.google.gwt.user</groupId>
38+
<artifactId>gwt-safehtml-client</artifactId>
39+
<version>${project.version}</version>
40+
</dependency>
41+
<dependency>
42+
<groupId>com.google.gwt.user</groupId>
43+
<artifactId>gwt-jsonp</artifactId>
44+
<version>${project.version}</version>
45+
</dependency>
46+
<dependency>
47+
<groupId>com.google.gwt.user</groupId>
48+
<artifactId>gwt-i18n-client</artifactId>
49+
<version>${project.version}</version>
50+
</dependency>
3651
<dependency>
3752
<groupId>com.google.gwt.util</groupId>
3853
<artifactId>gwt-tools-api</artifactId>

user/gwt-resources/src/main/resources/com/google/gwt/resources/Resources.gwt.xml

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -14,58 +14,13 @@
1414

1515
<!-- ClientBundle supports renaming files with strong names at compile time -->
1616
<module>
17-
<!-- Pull in the necessary base support, including user.agent detection -->
18-
<inherits name="com.google.gwt.core.Core" />
19-
<inherits name="com.google.gwt.useragent.UserAgent" />
20-
<!-- Pull in SafeUri and SafeUriUtils -->
21-
<inherits name="com.google.gwt.safehtml.SafeHtml" />
17+
<inherits name="com.google.gwt.resources.ResourcesBase" />
2218
<!-- Pull in StyleInjector for CssResource -->
2319
<inherits name="com.google.gwt.dom.DOM" />
2420
<!-- Used by ExternalTextResource -->
2521
<inherits name="com.google.gwt.http.HTTP" />
2622
<inherits name="com.google.gwt.jsonp.Jsonp" />
2723

28-
<!-- This acts as a switch to disable the use of data: URLs -->
29-
<define-property name="ClientBundle.enableInlining" values="true,false" />
30-
<set-property name="ClientBundle.enableInlining" value="true" />
31-
32-
<!-- Specify the default behavior which should work on all browsers -->
33-
<generate-with
34-
class="com.google.gwt.resources.rebind.context.StaticClientBundleGenerator">
35-
36-
<!-- We have to specify on which types to execute the Generator -->
37-
<when-type-assignable
38-
class="com.google.gwt.resources.client.ClientBundle" />
39-
</generate-with>
40-
41-
<!-- Last-matches wins, so this will selectively override the previous rule -->
42-
<generate-with
43-
class="com.google.gwt.resources.rebind.context.InlineClientBundleGenerator">
44-
45-
<!-- We have a number of conditions that must be satisfied -->
46-
<all>
47-
<!-- Is inlining enabled? -->
48-
<when-property-is name="ClientBundle.enableInlining" value="true" />
49-
50-
<!-- Again, it's necessary to specify which types the generator runs on -->
51-
<when-type-assignable
52-
class="com.google.gwt.resources.client.ClientBundle" />
53-
54-
<!-- Only some browsers support RFC 2397 data: URLs -->
55-
<any>
56-
<when-property-is name="user.agent" value="safari" />
57-
<when-property-is name="user.agent" value="opera" />
58-
<when-property-is name="user.agent" value="gecko1_8" />
59-
<when-property-is name="user.agent" value="ie8" />
60-
<when-property-is name="user.agent" value="ie9" />
61-
</any>
62-
</all>
63-
</generate-with>
64-
65-
<!-- This can be used to disable the use of strongly-named files -->
66-
<define-configuration-property name="ClientBundle.enableRenaming" is-multi-valued="false" />
67-
<set-configuration-property name="ClientBundle.enableRenaming" value="true" />
68-
6924
<!-- This allows merging of CSS rules to be disabled. -->
7025
<define-configuration-property name="CssResource.mergeEnabled" is-multi-valued="false" />
7126
<set-configuration-property name="CssResource.mergeEnabled" value="true" />

user/gwt-window/src/main/resources/com/google/gwt/user/Window.gwt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<inherits name="com.google.gwt.useragent.UserAgent"/>
2525
<inherits name="com.google.gwt.user.Cookies"/>
2626
<!-- Needed by WindowImplIE -->
27-
<inherits name="com.google.gwt.resources.Resources"/>
27+
<inherits name="com.google.gwt.resources.ResourcesBase"/>
2828

2929
<source path="client">
3030
<include name="BaseListenerWrapper.java"/>

user/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
<module>gwt-safecss-server</module>
114114
<module>gwt-safecss-client</module>
115115
<module>gwt-safehtml-client</module>
116+
<module>gwt-resources-core</module>
116117
<module>gwt-jsonp</module>
117118
<module>gwt-resources</module>
118119
<module>gwt-window</module>

0 commit comments

Comments
 (0)