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

Side by Side Diff: pkg/analysis_server/tool/spec/check_all_test.dart

Issue 474883002: Pub buildbot fix, TBR- Paul (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_tools.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library check.all; 5 library check.all;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart'; 9 import 'package:path/path.dart';
10 10
11 import 'codegen_tools.dart'; 11 import 'codegen_tools.dart';
12 import 'generate_all.dart'; 12 import 'generate_all.dart';
13 13
14 /** 14 /**
15 * Check that all targets have been code generated. If they haven't tell the 15 * Check that all targets have been code generated. If they haven't tell the
16 * user to run generate_all.dart. 16 * user to run generate_all.dart.
17 */ 17 */
18 main() { 18 main() {
19 String script = Platform.script.toFilePath(windows: Platform.isWindows); 19 String script = Platform.script.toFilePath(windows: Platform.isWindows);
20 Directory.current = new Directory(dirname(script)); 20 Directory.current = new Directory(dirname(script));
21 bool generateAllNeeded = false; 21 bool generateAllNeeded = false;
22 for (GeneratedFile generatedFile in allTargets) { 22 for (GeneratedContent generatedContent in allTargets) {
23 if (!generatedFile.check()) { 23 if (!generatedContent.check()) {
24 print( 24 print(
25 '${generatedFile.outputFile.absolute} does not have expected contents. '); 25 '${generatedContent.outputFile.absolute} does not have expected conten ts.');
26 generateAllNeeded = true; 26 generateAllNeeded = true;
27 } 27 }
28 } 28 }
29 if (generateAllNeeded) { 29 if (generateAllNeeded) {
30 print('Please regenerate using:'); 30 print('Please regenerate using:');
31 String executable = Platform.executable; 31 String executable = Platform.executable;
32 String packageRoot = ''; 32 String packageRoot = '';
33 if (Platform.packageRoot.isNotEmpty) { 33 if (Platform.packageRoot.isNotEmpty) {
34 packageRoot = ' --package-root=${Platform.packageRoot}'; 34 packageRoot = ' --package-root=${Platform.packageRoot}';
35 } 35 }
36 String generateScript = join(dirname(script), 'generate_all.dart'); 36 String generateScript = join(dirname(script), 'generate_all.dart');
37 print(' $executable$packageRoot $generateScript'); 37 print(' $executable$packageRoot $generateScript');
38 exit(1); 38 exit(1);
39 } else { 39 } else {
40 print('All generated files up to date.'); 40 print('All generated files up to date.');
41 } 41 }
42 } 42 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698