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

Side by Side Diff: utils/compiler/create_snapshot.dart

Issue 50413005: Reapply "Remove @deprecated features." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 1 month 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
« no previous file with comments | « tests/standalone/io/skipping_dart2js_compilations_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'dart:io'; 5 import 'dart:io';
6 6
7 Future<String> getVersion(var rootPath) { 7 Future<String> getVersion(var rootPath) {
8 var suffix = Platform.operatingSystem == 'windows' ? '.exe' : ''; 8 var suffix = Platform.operatingSystem == 'windows' ? '.exe' : '';
9 var printVersionScript = rootPath.resolve("tools/print_version.py"); 9 var printVersionScript = rootPath.resolve("tools/print_version.py");
10 return Process.run("python$suffix", 10 return Process.run("python$suffix",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (!validArguments.contains(argumentSplit[0])) { 76 if (!validArguments.contains(argumentSplit[0])) {
77 throw "Invalid argument $argument"; 77 throw "Invalid argument $argument";
78 } 78 }
79 args[argumentSplit[0].substring(2)] = argumentSplit[1]; 79 args[argumentSplit[0].substring(2)] = argumentSplit[1];
80 } 80 }
81 if (!args.containsKey("dart2js_main")) throw "Please specify dart2js_main"; 81 if (!args.containsKey("dart2js_main")) throw "Please specify dart2js_main";
82 if (!args.containsKey("dartdoc_main")) throw "Please specify dartdoc_main"; 82 if (!args.containsKey("dartdoc_main")) throw "Please specify dartdoc_main";
83 if (!args.containsKey("output_dir")) throw "Please specify output_dir"; 83 if (!args.containsKey("output_dir")) throw "Please specify output_dir";
84 if (!args.containsKey("package_root")) throw "Please specify package_root"; 84 if (!args.containsKey("package_root")) throw "Please specify package_root";
85 85
86 var scriptFile = new Uri.file(new File(Platform.script).fullPathSync()); 86 var scriptFile =
87 new Uri.file(new File(Platform.script).resolveSymbolicLinksSync());
87 var path = scriptFile.resolve("."); 88 var path = scriptFile.resolve(".");
88 var rootPath = path.resolve("../.."); 89 var rootPath = path.resolve("../..");
89 getSnapshotGenerationFile(args, rootPath).then((result) { 90 getSnapshotGenerationFile(args, rootPath).then((result) {
90 var wrapper = "${args['output_dir']}/utils_wrapper.dart"; 91 var wrapper = "${args['output_dir']}/utils_wrapper.dart";
91 writeSnapshotFile(wrapper, result); 92 writeSnapshotFile(wrapper, result);
92 createSnapshot(wrapper, args["package_root"]); 93 createSnapshot(wrapper, args["package_root"]);
93 }); 94 });
94 } 95 }
OLDNEW
« no previous file with comments | « tests/standalone/io/skipping_dart2js_compilations_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698