forked from google/truth
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
64 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<module> | ||
|
||
<source path=""> | ||
|
||
<!-- Hack to keep collect from hiding collect.testing supersource: --> | ||
|
||
<exclude name="**/testing/**"/> | ||
|
||
</source> | ||
|
||
<!-- We used to set this only for packages that had manual supersource. That worked everywhere that I know of except for one place: when running the GWT util.concurrent tests under Guava. The problem is that GWT responds poorly to two .gwt.xml files in the same Java package: https://goo.gl/pRV3Yn The summary is that it ignores one file in favor of the other. util.concurrent, like nearly all our packages, has two .gwt.xml files: one for prod and one for tests. util.concurrent, unlike our other packages, has, as of this writing, test supersource but no prod supersource. GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. This causes it to fail to find AtomicLongMapTest. Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. GWT is happy to ignore us when we specify a nonexistent path. (I hope that this workaround does not cause its own problems in the future.) --> | ||
|
||
<super-source path="super"/> | ||
|
||
<inherits name="com.google.gwt.user.User"/> | ||
|
||
<inherits name="com.google.common.annotations.Annotations"/> | ||
|
||
<inherits name="com.google.common.base.Base"/> | ||
|
||
<inherits name="com.google.common.collect.Collect"/> | ||
|
||
<inherits name="com.google.common.primitives.Primitives"/> | ||
|
||
<inherits name="com.google.common.util.concurrent.Concurrent"/> | ||
|
||
<inherits name="com.google.gwt.core.Core"/> | ||
|
||
<source path=""> | ||
<!-- Hack to keep collect from hiding collect.testing supersource: --> | ||
<exclude name="**/testing/**"/> | ||
</source> | ||
|
||
<!-- | ||
We used to set this only for packages that had manual supersource. | ||
That worked everywhere that I know of except for one place: | ||
when running the GWT util.concurrent tests under Guava. | ||
The problem is that GWT responds poorly to two .gwt.xml files in the same Java package: | ||
https://goo.gl/pRV3Yn | ||
The summary is that it ignores one file in favor of the other. | ||
util.concurrent, like nearly all our packages, has two .gwt.xml files: one for prod and one for tests. | ||
util.concurrent, unlike our other packages, has, as of this writing, test supersource but no prod supersource. | ||
GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. | ||
This causes it to fail to find AtomicLongMapTest. | ||
Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. | ||
GWT is happy to ignore us when we specify a nonexistent path. | ||
(I hope that this workaround does not cause its own problems in the future.) | ||
--> | ||
<super-source path="super"/> | ||
<inherits name="com.google.gwt.user.User" /> | ||
|
||
<inherits name="com.google.common.annotations.Annotations" /> | ||
<inherits name="com.google.common.base.Base" /> | ||
<inherits name="com.google.common.collect.Collect" /> | ||
<inherits name="com.google.common.primitives.Primitives" /> | ||
<inherits name="com.google.common.util.concurrent.Concurrent" /> | ||
|
||
|
||
|
||
<inherits name="com.google.gwt.core.Core" /> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 1 addition & 9 deletions
10
core/src/test/java/com/google/common/truth/gwt/TruthTest.gwt.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<module> | ||
|
||
<inherits name="com.google.common.base.Base"/> | ||
|
||
<inherits name="com.google.common.collect.Collect"/> | ||
|
||
<inherits name="com.google.common.primitives.Primitives"/> | ||
|
||
<inherits name="com.google.common.truth.Truth"/> | ||
|
||
<!-- TODO(cpovirk): Test Truth8 separately. --> | ||
|
||
<!-- TODO(cpovirk): Test Truth8 separately. --> | ||
<inherits name="com.google.gwt.junit.JUnit"/> | ||
|
||
</module> |
50 changes: 28 additions & 22 deletions
50
extensions/java8/src/main/java/com/google/common/truth/Truth8.gwt.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<module> | ||
|
||
<source path=""> | ||
|
||
<!-- Hack to keep collect from hiding collect.testing supersource: --> | ||
|
||
<exclude name="**/testing/**"/> | ||
|
||
</source> | ||
|
||
<!-- We used to set this only for packages that had manual supersource. That worked everywhere that I know of except for one place: when running the GWT util.concurrent tests under Guava. The problem is that GWT responds poorly to two .gwt.xml files in the same Java package: https://goo.gl/pRV3Yn The summary is that it ignores one file in favor of the other. util.concurrent, like nearly all our packages, has two .gwt.xml files: one for prod and one for tests. util.concurrent, unlike our other packages, has, as of this writing, test supersource but no prod supersource. GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. This causes it to fail to find AtomicLongMapTest. Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. GWT is happy to ignore us when we specify a nonexistent path. (I hope that this workaround does not cause its own problems in the future.) --> | ||
|
||
<super-source path="super"/> | ||
|
||
<inherits name="com.google.gwt.user.User"/> | ||
|
||
<inherits name="com.google.common.annotations.Annotations"/> | ||
|
||
<inherits name="com.google.common.truth.Truth"/> | ||
|
||
<inherits name="com.google.gwt.core.Core"/> | ||
|
||
<source path=""> | ||
<!-- Hack to keep collect from hiding collect.testing supersource: --> | ||
<exclude name="**/testing/**"/> | ||
</source> | ||
|
||
<!-- | ||
We used to set this only for packages that had manual supersource. | ||
That worked everywhere that I know of except for one place: | ||
when running the GWT util.concurrent tests under Guava. | ||
The problem is that GWT responds poorly to two .gwt.xml files in the same Java package: | ||
https://goo.gl/pRV3Yn | ||
The summary is that it ignores one file in favor of the other. | ||
util.concurrent, like nearly all our packages, has two .gwt.xml files: one for prod and one for tests. | ||
util.concurrent, unlike our other packages, has, as of this writing, test supersource but no prod supersource. | ||
GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. | ||
This causes it to fail to find AtomicLongMapTest. | ||
Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. | ||
GWT is happy to ignore us when we specify a nonexistent path. | ||
(I hope that this workaround does not cause its own problems in the future.) | ||
--> | ||
<super-source path="super"/> | ||
<inherits name="com.google.gwt.user.User" /> | ||
|
||
<inherits name="com.google.common.annotations.Annotations" /> | ||
|
||
|
||
<inherits name="com.google.common.truth.Truth" /> | ||
<inherits name="com.google.gwt.core.Core" /> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters