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

Unified Diff: runtime/bin/vmservice/client/build.dart

Issue 98253009: Refactor VM service IDs (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/build.dart
diff --git a/runtime/bin/vmservice/client/build.dart b/runtime/bin/vmservice/client/build.dart
deleted file mode 100644
index 6b7d11f08ae8877698ec1ef17793cb05345f82bd..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/client/build.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'package:polymer/builder.dart';
-import 'dart:io';
-import 'dart:async';
-
-main() {
- lint()
- .then((_) => deploy()).then(compileToJs);
-}
-
-String findDart2JS() {
- var dartPath = Platform.executable;
- var lastIndex = dartPath.lastIndexOf(Platform.pathSeparator);
- if (lastIndex != -1) {
- var binPath = dartPath.substring(0, lastIndex);
- return '$binPath${Platform.pathSeparator}dart2js';
- }
- return 'dart2js';
-}
-
-void runDart2JS(String input, String output) {
- var dart2js_path = findDart2JS();
- var result =
- Process.runSync(dart2js_path,
- [ '--minify', '-o', output, input], runInShell: true);
- print(result.stdout);
- print(result.stderr);
- if (result.exitCode != 0) {
- print("Running dart2js failed.");
- exit(result.exitCode);
- }
-}
-
-compileToJs(_) {
- print("Running dart2js");
- runDart2JS('out/web/index.html_bootstrap.dart',
- 'out/web/index.html_bootstrap.dart.js');
- runDart2JS('out/web/index_devtools.html_bootstrap.dart',
- 'out/web/index_devtools.html_bootstrap.dart.js');
- print("Done");
-}

Powered by Google App Engine
This is Rietveld 408576698