Removing a logging message people are seeing when building with GWT locally.
The GWT compiler is showing inconsistent behavior when compling resources on
forge vs. locally, so the best solution for now is to remove the logging
message so other clients can have clean builds.
Review by: unnurg@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10685 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java b/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java
index 240ff78..e63b6d8 100644
--- a/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java
+++ b/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java
@@ -613,7 +613,8 @@
}
if (os == null) {
- logger.log(TreeLogger.WARN, "Created resource is null: " + mappingFileName);
+ // If the returned OutputStream is null, that typically means the resource already exists.
+ // No need to write it out again.
return;
}
diff --git a/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java b/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java
index bf3a9d4..95a1897 100644
--- a/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java
+++ b/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java
@@ -111,10 +111,7 @@
}
public void testOutputCssMapArtifactReturnNullOutputString() throws UnableToCompleteException {
- UnitTestTreeLogger.Builder builder = new UnitTestTreeLogger.Builder();
- builder.expectWarn(
- "Created resource is null: cssResource/com.test.Bundle.cssMethod.cssmap", null);
- UnitTestTreeLogger testLogger = builder.createLogger();
+ UnitTestTreeLogger testLogger = new UnitTestTreeLogger.Builder().createLogger();
ResourceContext mockResourceContext = EasyMock.createMock(ResourceContext.class);
Map<JMethod, String> testMap = new HashMap<JMethod, String>();
OutputStream mockOutputStream = EasyMock.createMock(OutputStream.class);