thread.stop() -> thread.interrupt()

This commit is contained in:
Andrew Phillips 2011-05-29 19:46:02 +01:00
parent bb64bb035a
commit 36beb90de0
1 changed files with 5 additions and 5 deletions

View File

@ -18,13 +18,13 @@
*/ */
package org.jclouds.samples.googleappengine.functest; package org.jclouds.samples.googleappengine.functest;
import com.google.appengine.tools.KickStart; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.File;
import java.util.Properties; import java.util.Properties;
import com.google.appengine.tools.KickStart;
/** /**
* Basic functionality to start a local google app engine instance. * Basic functionality to start a local google app engine instance.
* *
@ -57,9 +57,9 @@ public class GoogleDevServer {
Thread.sleep(30 * 1000); Thread.sleep(30 * 1000);
} }
@SuppressWarnings("deprecation")
public void stop() throws Exception { public void stop() throws Exception {
server.stop(); // KickStart.main opens a process and calls process.waitFor(), which is interruptable
server.interrupt();
} }
} }