Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java

Issue 8806032: Prevent "complete" file from being cached across compilation sessions to save space (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java (revision 2085)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java (working copy)
@@ -51,6 +51,7 @@
* {@link RootArtifactProvider}.
*/
private static class ArtifactProvider extends CachingArtifactProvider {
+
private final DartArtifactProvider rootProvider;
private int writeArtifactCount = 0;
private int outOfDateCount = 0;
@@ -83,21 +84,9 @@
// Don't write the final application JS and map files
- if (extension.startsWith(AbstractJsBackend.EXTENSION_APP_JS)) {
- return new Writer() {
-
- @Override
- public void close() throws IOException {
- }
-
- @Override
- public void flush() throws IOException {
- }
-
- @Override
- public void write(char[] cbuf, int off, int len) throws IOException {
- }
- };
+ if (extension.equals(AbstractJsBackend.EXTENSION_APP_JS)
+ || extension.equals(AbstractJsBackend.EXTENSION_APP_JS_SRC_MAP)) {
+ return new NullWriter();
}
// Cache "warmup" artifacts locally so that they can be thrown away

Powered by Google App Engine
This is Rietveld 408576698