Index: pkg/analysis_server/test/integration/integration_tests.dart |
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart |
index 9835a1e2a3540f5b23387056c6cad6975989adb9..5ae41f93e0848b72a4e58e708fa4819f0bb3b85d 100644 |
--- a/pkg/analysis_server/test/integration/integration_tests.dart |
+++ b/pkg/analysis_server/test/integration/integration_tests.dart |
@@ -597,11 +597,12 @@ class Server { |
* "--pause-isolates-on-exit", allowing the observatory to be used. |
*/ |
Future start( |
- {bool debugServer: false, |
+ {bool checked: true, |
+ bool debugServer: false, |
int diagnosticPort, |
bool profileServer: false, |
+ String sdkPath, |
int servicesPort, |
- bool checked: true, |
bool useAnalysisHighlight2: false}) { |
if (_process != null) { |
throw new Exception('Process already started'); |
@@ -612,6 +613,9 @@ class Server { |
findRoot(Platform.script.toFilePath(windows: Platform.isWindows)); |
String serverPath = normalize(join(rootDir, 'bin', 'server.dart')); |
List<String> arguments = []; |
+ // |
+ // Add VM arguments. |
+ // |
if (debugServer) { |
arguments.add('--debug'); |
} |
@@ -631,11 +635,20 @@ class Server { |
if (checked) { |
arguments.add('--checked'); |
} |
+ // |
+ // Add the server executable. |
+ // |
arguments.add(serverPath); |
+ // |
+ // Add server arguments. |
+ // |
if (diagnosticPort != null) { |
arguments.add('--port'); |
arguments.add(diagnosticPort.toString()); |
} |
+ if (sdkPath != null) { |
+ arguments.add('--sdk=$sdkPath'); |
+ } |
if (useAnalysisHighlight2) { |
arguments.add('--useAnalysisHighlight2'); |
} |