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

Unified Diff: sdk/lib/_internal/dartdoc/bin/dartdoc.dart

Issue 19500013: Use path package in dartdoc (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/dartdoc/bin/dartdoc.dart
===================================================================
--- sdk/lib/_internal/dartdoc/bin/dartdoc.dart (revision 25311)
+++ sdk/lib/_internal/dartdoc/bin/dartdoc.dart (working copy)
@@ -45,7 +45,7 @@
final argParser = new ArgParser();
- Path libPath = scriptDir.append('../../../../');
+ String libPath = path.join(scriptDir, '..', '..', '..', '..');
String packageRoot;
@@ -126,7 +126,7 @@
'omitted the files are generated into ./docs/',
callback: (outDir) {
if(outDir != null) {
- dartdoc.outputDir = new Path(outDir);
+ dartdoc.outputDir = outDir;
}
});
@@ -182,7 +182,7 @@
help: 'Sets the library root directory to the specified directory.',
callback: (libraryRoot) {
if (libraryRoot != null) {
- libPath = new Path(libraryRoot);
+ libPath = libraryRoot;
}
});
@@ -195,7 +195,7 @@
}
});
- dartdoc.dartdocPath = libPath.append('lib/_internal/dartdoc');
+ dartdoc.dartdocPath = path.join(libPath, 'lib', '_internal', 'dartdoc');
if (args.isEmpty) {
print('No arguments provided.');
@@ -248,8 +248,9 @@
// scripts. This takes a long time and the js hardly ever changes.
.then((_) => compileScript(dartdoc.mode, dartdoc.outputDir, libPath,
dartdoc.tmpPath))
- .then((_) => copyDirectory(libPath.append('lib/_internal/dartdoc/static'),
- dartdoc.outputDir))
+ .then((_) => copyDirectory(
+ path.join(libPath, 'lib', '_internal', 'dartdoc', 'static'),
+ dartdoc.outputDir))
.then((_) {
print(dartdoc.status);
if (dartdoc.totals == 0) {
« no previous file with comments | « no previous file | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698