We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c72aaf8 commit e31b12dCopy full SHA for e31b12d
src/main/java/com/browserstack/local/Local.java
@@ -99,6 +99,23 @@ public void stop() throws Exception {
99
}
100
101
102
+ /**
103
+ * Stops the Local instance specified by the given identifier
104
+ * @param options Options supplied for the Local instance
105
+ **/
106
+ public void stop(Map<String, String> options) throws Exception {
107
+ if (options.get("binarypath") != null) {
108
+ binaryPath = options.get("binarypath");
109
+ } else {
110
+ LocalBinary lb = new LocalBinary();
111
+ binaryPath = lb.getBinaryPath();
112
+ }
113
+ makeCommand(options, "stop");
114
+ proc = runCommand(command);
115
+ proc.waitFor();
116
+ pid = 0;
117
118
+
119
/**
120
* Checks if Local instance is running
121
*
0 commit comments