Chromium Code Reviews| Index: pkg/analysis_server/tool/spec/codegen_tools.dart |
| diff --git a/pkg/analysis_server/tool/spec/codegen_tools.dart b/pkg/analysis_server/tool/spec/codegen_tools.dart |
| index f79036e62c964133c93dd55840a95d45c8108587..70a51943376eab6ea0ce72618120aeac68b995c9 100644 |
| --- a/pkg/analysis_server/tool/spec/codegen_tools.dart |
| +++ b/pkg/analysis_server/tool/spec/codegen_tools.dart |
| @@ -411,7 +411,15 @@ class GeneratedDirectory extends GeneratedContent { |
| return false; |
| } |
| }); |
| - if (outputFile.listSync().length != map.length) { |
| + int nonHiddenFileCount = 0; |
| + outputFile.listSync( |
| + recursive: false, |
| + followLinks: false).forEach((FileSystemEntity fileSystemEntity) { |
| + if(fileSystemEntity is File && !posix.split(fileSystemEntity.path).last.startsWith('.')) { |
|
Paul Berry
2014/08/18 20:56:41
Don't use "posix."--this needs to work on Windows.
jwren
2014/08/18 21:06:29
Done.
|
| + nonHiddenFileCount++; |
| + } |
| + }); |
| + if (nonHiddenFileCount != map.length) { |
| // The number of files generated doesn't match the number we expected to |
| // generate. |
| return false; |