File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
src/main/java/com/browserstack/local Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 4
4
<groupId >com.browserstack</groupId >
5
5
<artifactId >browserstack-local-java</artifactId >
6
6
<packaging >jar</packaging >
7
- <version >1.0.1 </version >
7
+ <version >1.0.2 </version >
8
8
9
9
<name >browserstack-local-java</name >
10
10
<description >Java bindings for BrowserStack Local</description >
Original file line number Diff line number Diff line change @@ -99,6 +99,23 @@ public void stop() throws Exception {
99
99
}
100
100
}
101
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
+
102
119
/**
103
120
* Checks if Local instance is running
104
121
*
You can’t perform that action at this time.
0 commit comments