Ignore:
Timestamp:
Mar 19, 2013, 11:00:06 AM (12 years ago)
Author:
alloc
Message:

AEI2 0.99u:

  • Fixed a few bugs in apply patches
  • Added some log output to apply patches
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;
     1package net.oni2.aeinstaller.backend.appexecution;
    22
    33import java.io.BufferedReader;
     
    1313 */
    1414public class AppExecution {
    15 
    1615        /**
    1716         * Execute a short running application and wait for termination
     
    1918         * @param cmdLine
    2019         *            List of command and arguments
    21          * @return List of output lines
     20         * @return Error code and list of output lines
    2221         * @throws IOException
    2322         *             Exc
    2423         */
    25         public static Vector<String> executeAndWait(List<String> cmdLine)
     24        public static AppExecutionResult executeAndWait(Vector<String> cmdLine)
    2625                        throws IOException {
    2726                ProcessBuilder pb = new ProcessBuilder(cmdLine);
     
    3938                        lines.add(line);
    4039                }
    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);
    4247        }
    4348
Note: See TracChangeset for help on using the changeset viewer.