- Timestamp:
- Mar 19, 2013, 11:00:06 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/appexecution
- Files:
-
- 2 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/appexecution/AppExecution.java
r697 r702 1 package net.oni2.aeinstaller.backend ;1 package net.oni2.aeinstaller.backend.appexecution; 2 2 3 3 import java.io.BufferedReader; … … 13 13 */ 14 14 public class AppExecution { 15 16 15 /** 17 16 * Execute a short running application and wait for termination … … 19 18 * @param cmdLine 20 19 * List of command and arguments 21 * @return List of output lines20 * @return Error code and list of output lines 22 21 * @throws IOException 23 22 * Exc 24 23 */ 25 public static Vector<String> executeAndWait(List<String> cmdLine)24 public static AppExecutionResult executeAndWait(Vector<String> cmdLine) 26 25 throws IOException { 27 26 ProcessBuilder pb = new ProcessBuilder(cmdLine); … … 39 38 lines.add(line); 40 39 } 41 return lines; 40 try { 41 proc.waitFor(); 42 } catch (InterruptedException e) { 43 // TODO Auto-generated catch block 44 e.printStackTrace(); 45 } 46 return new AppExecutionResult(proc.exitValue(), cmdLine, lines); 42 47 } 43 48
Note:
See TracChangeset
for help on using the changeset viewer.