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

Unified Diff: lib/src/compiler.dart

Issue 1645343002: Builds / serves multiple HTML files. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Cleanup Created 4 years, 11 months 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: lib/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index 61c568591624e3a99238c4a54937cf2f6f85bcf8..6f1288e616d6f1ef6813f76edc9f4d8ee0314f3b 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -305,7 +305,9 @@ class BatchCompiler extends AbstractCompiler {
}
}
- new File(getOutputPath(source.uri)).openSync(mode: FileMode.WRITE)
+ var outputFile = getOutputPath(source.uri);
+ var file = new File(outputFile)..createSync(recursive: true);
+ file.openSync(mode: FileMode.WRITE)
Jennifer Messerly 2016/01/29 16:49:49 silly style nit: curious about the mix between cas
vsm 2016/01/29 18:13:51 Done.
..writeStringSync(document.outerHtml)
..writeStringSync('\n')
..closeSync();

Powered by Google App Engine
This is Rietveld 408576698