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

Side by Side Diff: runtime/bin/vmservice/client/build.dart

Issue 77043010: - Ensure that classes are finalized before their description is (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'package:polymer/builder.dart'; 5 import 'package:polymer/builder.dart';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 main() { 9 main() {
10 lint() 10 lint()
11 .then((_) => deploy()).then(compileToJs); 11 .then((_) => deploy()).then(compileToJs);
12 } 12 }
13 13
14 compileToJs(_) { 14 compileToJs(_) {
15 print("Running dart2js"); 15 print("Running dart2js");
16 var dart_path = Platform.executable;
Bob Nystrom 2013/11/21 21:23:53 Drive-by comment: The style guide for variables in
17 var bin_path = dart_path.substring(0, dart_path.lastIndexOf(Platform.pat hSeparator));
18 var dart2js_path = "$bin_path${Platform.pathSeparator}dart2js";
16 var result = 19 var result =
17 Process.runSync('dart2js', 20 Process.runSync(dart2js_path,
18 [ '--minify', '-o', 'out/web/index.html_bootstrap.dart.js', 21 [ '--minify', '-o', 'out/web/index.html_bootstrap.dart.js',
19 'out/web/index.html_bootstrap.dart'], runInShell: true); 22 'out/web/index.html_bootstrap.dart'], runInShell: true);
20 print(result.stdout); 23 print(result.stdout);
24 print(result.stderr);
25 if (result.exitCode != 0) {
26 print("Running dart2js failed.");
27 exit(result.exitCode);
28 }
21 print("Done"); 29 print("Done");
22 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698