jdk/test/sun/tools/jps/TestJpsJarRelative.java
changeset 27189 b90845965ee9
parent 25987 76e62811f63b
child 30376 2ccf2cf7ea48
equal deleted inserted replaced
27188:a1aa62221649 27189:b90845965ee9
    53         cmd.add("-jar");
    53         cmd.add("-jar");
    54         cmd.add("." + File.separator + jar.getName());
    54         cmd.add("." + File.separator + jar.getName());
    55         cmd.add("monkey");
    55         cmd.add("monkey");
    56 
    56 
    57         ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(cmd.toArray(new String[cmd.size()]));
    57         ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(cmd.toArray(new String[cmd.size()]));
    58         OutputAnalyzer output = new OutputAnalyzer(processBuilder.start());
    58         OutputAnalyzer output = ProcessTools.executeProcess(processBuilder);
    59         System.out.println(output.getOutput());
    59         System.out.println(output.getOutput());
    60         output.shouldHaveExitValue(0);
    60         output.shouldHaveExitValue(0);
    61     }
    61     }
    62 
    62 
    63 }
    63 }