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

Side by Side Diff: dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart

Issue 13471015: Ensure apidoc exits with non-zero exit code when dart2js crashes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 | dart/utils/apidoc/apidoc.dart » ('j') | dart/utils/apidoc/apidoc.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * To generate docs for a library, run this script with the path to an 6 * To generate docs for a library, run this script with the path to an
7 * entrypoint .dart file, like: 7 * entrypoint .dart file, like:
8 * 8 *
9 * $ dart dartdoc.dart foo.dart 9 * $ dart dartdoc.dart foo.dart
10 * 10 *
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 copyDirectory(scriptDir.append('../static'), dartdoc.outputDir) 244 copyDirectory(scriptDir.append('../static'), dartdoc.outputDir)
245 ]); 245 ]);
246 }) 246 })
247 .then((_) { 247 .then((_) {
248 print(dartdoc.status); 248 print(dartdoc.status);
249 if (dartdoc.totals == 0) { 249 if (dartdoc.totals == 0) {
250 exit(1); 250 exit(1);
251 } 251 }
252 }) 252 })
253 .catchError((e) { 253 .catchError((e) {
254 print('Error: generation failed: ${e.error}'); 254 print('Error: generation failed: ${e}');
255 exit(1); 255 exit(1);
256 }) 256 })
257 .whenComplete(() => dartdoc.cleanup()); 257 .whenComplete(() => dartdoc.cleanup());
258 } 258 }
OLDNEW
« no previous file with comments | « no previous file | dart/utils/apidoc/apidoc.dart » ('j') | dart/utils/apidoc/apidoc.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698