OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /// Logic to combine all the ._buildLog.* logs into one ._buildLog file. | 5 /// Logic to combine all the ._buildLog.* logs into one ._buildLog file. |
6 library polymer.src.build.log_combiner; | 6 library polymer.src.build.log_combiner; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 | 9 |
10 import 'package:barback/barback.dart'; | 10 import 'package:barback/barback.dart'; |
(...skipping 13 matching lines...) Expand all Loading... |
24 if (!options.injectBuildLogsInOutput) return false; | 24 if (!options.injectBuildLogsInOutput) return false; |
25 var id = idOrAsset is AssetId ? idOrAsset : idOrAsset.id; | 25 var id = idOrAsset is AssetId ? idOrAsset : idOrAsset.id; |
26 return options.isHtmlEntryPoint(id); | 26 return options.isHtmlEntryPoint(id); |
27 } | 27 } |
28 | 28 |
29 Future apply(Transform transform) { | 29 Future apply(Transform transform) { |
30 // Combine all ._buildLogs* files into one ._buildLogs file. | 30 // Combine all ._buildLogs* files into one ._buildLogs file. |
31 return BuildLogger.combineLogFiles(transform); | 31 return BuildLogger.combineLogFiles(transform); |
32 } | 32 } |
33 } | 33 } |
OLD | NEW |