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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 9705088: Generate API docs during build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Port list_files back to python. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: lib/dartdoc/dartdoc.dart
diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
index fd8ecd12b666d9b1e20eef1cae122632d9b5d0e9..1f5a6293f20b5d67d9c3af8e86d139086e61c456 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -140,8 +140,9 @@ void cleanOutputDirectory(String path) {
final outputDir = new Directory(path);
if (outputDir.existsSync()) {
outputDir.deleteRecursivelySync();
- outputDir.createSync();
}
+
+ outputDir.createSync();
}
/**
@@ -182,7 +183,7 @@ void compileScript(String compilerPath, String libDir,
process.stdout.pipe(stdout, close: false);
process.onError = (error) {
- print('Failed to compile $dartPath. Error:');
+ print('Failed to compile $dartPath:');
print(error);
};
}
« no previous file with comments | « frog/reader.dart ('k') | utils/apidoc/apidoc.dart » ('j') | utils/apidoc/apidoc.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698