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

Unified Diff: lib/component_build.dart

Issue 11611003: Fix #269 - detect correctly generated files that are indirectly under the out (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 8 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
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/component_build.dart
diff --git a/lib/component_build.dart b/lib/component_build.dart
index 686a988b5a954808eec0a40dcd8acb2b571a4ef9..145e2d607b4221f5dfda8e40fa79aedc31f58988 100644
--- a/lib/component_build.dart
+++ b/lib/component_build.dart
@@ -72,8 +72,9 @@ String _outDir(String file) =>
bool _isGeneratedFile(String filePath, List<Directory> outputDirs) {
var path = new Path.fromNative(filePath);
+ var dirPrefix = path.directoryPath.toString();
for (var dir in outputDirs) {
- if (path.directoryPath.toString() == dir.path) return true;
+ if (dirPrefix.startsWith(dir.path)) return true;
}
return path.filename.startsWith('_');
}
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698