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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 10658031: Dart2js called as 'dart2js.bat' on Windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/dartdoc.dart
diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
index 36acef2f641c02d337656e71e70f11bbd49b5fc1..63eb2b2f3ca7371cf218222f3b2f747797282413 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -112,7 +112,8 @@ void main() {
// that dartdoc still works when run from the built SDK directory.
final frogPath = joinPaths(scriptDir, 'frog/');
final libDir = joinPaths(scriptDir, '..');
- final compilerPath = 'dart2js';
+ final compilerPath
+ = Platform.operatingSystem == 'windows' ? 'dart2js.bat' : 'dart2js';
parseOptions(frogPath, ['', '', '--libdir=$libDir'], files);
initializeWorld(files);
@@ -139,11 +140,11 @@ void main() {
Futures.wait([scriptCompiled, filesCopied]).then((_) {
dartdoc.document(entrypoint);
- });
- print('Documented ${dartdoc._totalLibraries} libraries, '
- '${dartdoc._totalTypes} types, and '
- '${dartdoc._totalMembers} members.');
+ print('Documented ${dartdoc._totalLibraries} libraries, '
+ '${dartdoc._totalTypes} types, and '
+ '${dartdoc._totalMembers} members.');
+ });
}
/**
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698