OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library source.pub_package_map_provider; | 5 library source.pub_package_map_provider; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:core' hide Resource; | 9 import 'dart:core' hide Resource; |
10 import 'dart:io' as io; | 10 import 'dart:io' as io; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 /** | 156 /** |
157 * Run pub list to determine the packages and input files. | 157 * Run pub list to determine the packages and input files. |
158 */ | 158 */ |
159 io.ProcessResult _runPubListDefault(Folder folder) { | 159 io.ProcessResult _runPubListDefault(Folder folder) { |
160 String executablePath = sdk.pubExecutable.getAbsolutePath(); | 160 String executablePath = sdk.pubExecutable.getAbsolutePath(); |
161 List<String> arguments = [PUB_LIST_COMMAND]; | 161 List<String> arguments = [PUB_LIST_COMMAND]; |
162 String workingDirectory = folder.path; | 162 String workingDirectory = folder.path; |
163 int subprocessId = AnalysisEngine.instance.instrumentationService | 163 int subprocessId = AnalysisEngine.instance.instrumentationService |
164 .logSubprocessStart(executablePath, arguments, workingDirectory); | 164 .logSubprocessStart(executablePath, arguments, workingDirectory); |
165 io.ProcessResult result = io.Process.runSync(executablePath, arguments, | 165 io.ProcessResult result = io.Process |
166 workingDirectory: workingDirectory); | 166 .runSync(executablePath, arguments, workingDirectory: workingDirectory); |
167 AnalysisEngine.instance.instrumentationService.logSubprocessResult( | 167 AnalysisEngine.instance.instrumentationService.logSubprocessResult( |
168 subprocessId, result.exitCode, result.stdout, result.stderr); | 168 subprocessId, result.exitCode, result.stdout, result.stderr); |
169 return result; | 169 return result; |
170 } | 170 } |
171 } | 171 } |
OLD | NEW |