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

Unified Diff: pkg/docgen/lib/docgen.dart

Issue 155553002: Run pub update on the pulled down version of dartdoc viewer to run. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index 9c8fc8dc11c47de099451aa232d2fa4c27ec267b..bb500908213638ded4d20475edf6d514986893cd 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -661,6 +661,11 @@ class _Viewer {
/// Move the generated json/yaml docs directory to the dartdoc-viewer
/// directory, to run as a webpage.
static void _moveDirectoryAndServe() {
+ var processResult = Process.runSync('pub', ['update'], runInShell: true,
+ workingDirectory: path.join(_dartdocViewerDir.path, 'client'));
+ print('process output: ${processResult.stdout}');
+ print('process stderr: ${processResult.stderr}');
+
var dir = new Directory(_Generator._outputDirectory == null? 'docs' :
_Generator._outputDirectory);
var webDocsDir = new Directory(path.join(_dartdocViewerDir.path, 'client',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698