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 44 <groupId >com.browserstack</groupId >
55 <artifactId >browserstack-local-java</artifactId >
66 <packaging >jar</packaging >
7- <version >1.0.1 </version >
7+ <version >1.0.2 </version >
88
99 <name >browserstack-local-java</name >
1010 <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 {
9999 }
100100 }
101101
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+
102119 /**
103120 * Checks if Local instance is running
104121 *
You can’t perform that action at this time.
0 commit comments