| 1 |
package net.oni2.aeinstaller.backend.app_launcher; |
| 2 |
|
| 3 |
import java.io.IOException; |
| 4 |
|
| 5 |
//TODO |
| 6 |
|
| 7 |
/** |
| 8 |
* @author Christian Illy |
| 9 |
*/ |
| 10 |
public class LongRunningExecution implements Runnable { |
| 11 |
private ProcessBuilder pb; |
| 12 |
|
| 13 |
/** |
| 14 |
* @param pb |
| 15 |
* ProcessBuilder to use |
| 16 |
*/ |
| 17 |
public LongRunningExecution(ProcessBuilder pb) { |
| 18 |
this.pb = pb; |
| 19 |
} |
| 20 |
|
| 21 |
@Override |
| 22 |
public void run() { |
| 23 |
try { |
| 24 |
Process p = pb.start(); |
| 25 |
p.waitFor(); |
| 26 |
// GameManager.getInstance().refreshInstalledInfo(); |
| 27 |
} catch (IOException e) { |
| 28 |
// TODO Auto-generated catch block |
| 29 |
e.printStackTrace(); |
| 30 |
} catch (InterruptedException e) { |
| 31 |
// TODO Auto-generated catch block |
| 32 |
e.printStackTrace(); |
| 33 |
} |
| 34 |
} |
| 35 |
|
| 36 |
} |