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

Unified Diff: lib/src/codegen/html_codegen.dart

Issue 1223113005: simplify computing of runtime file locations (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « lib/devc.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/html_codegen.dart
diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart
index 48ef45626ccd2d4f649928268c0911114b368008..f6f2332f630837fa433cc075ae561acfc3a4fd39 100644
--- a/lib/src/codegen/html_codegen.dart
+++ b/lib/src/codegen/html_codegen.dart
@@ -51,7 +51,8 @@ String generateEntryHtml(HtmlSourceNode root, CompilerOptions options) {
// Make sure we don't try and add this node again.
resources.remove(resource);
- var resourcePath = resourceOutputPath(resource.uri, root.uri);
+ var resourcePath =
+ resourceOutputPath(resource.uri, root.uri, options.runtimeDir);
if (resource.cachingHash != null) {
resourcePath = _addHash(resourcePath, resource.cachingHash);
}
@@ -65,7 +66,8 @@ String generateEntryHtml(HtmlSourceNode root, CompilerOptions options) {
var fragment = new DocumentFragment();
for (var resource in resources) {
- var resourcePath = resourceOutputPath(resource.uri, root.uri);
+ var resourcePath =
+ resourceOutputPath(resource.uri, root.uri, options.runtimeDir);
var ext = path.extension(resourcePath);
if (resource.cachingHash != null) {
resourcePath = _addHash(resourcePath, resource.cachingHash);
« no previous file with comments | « lib/devc.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698