equal
deleted
inserted
replaced
28 * @author sogoel |
28 * @author sogoel |
29 * @library /tools/lib |
29 * @library /tools/lib |
30 * @modules jdk.compiler/com.sun.tools.javac.api |
30 * @modules jdk.compiler/com.sun.tools.javac.api |
31 * jdk.compiler/com.sun.tools.javac.main |
31 * jdk.compiler/com.sun.tools.javac.main |
32 * jdk.compiler/com.sun.tools.sjavac |
32 * jdk.compiler/com.sun.tools.sjavac |
33 * jdk.jdeps/com.sun.tools.javap |
|
34 * @build Wrapper toolbox.ToolBox |
33 * @build Wrapper toolbox.ToolBox |
35 * @run main Wrapper ParallelCompilations |
34 * @run main Wrapper ParallelCompilations |
36 */ |
35 */ |
37 |
36 |
38 import java.io.*; |
37 import java.io.*; |
43 public static void main(String[] args) throws Exception { |
42 public static void main(String[] args) throws Exception { |
44 new ParallelCompilations().run(); |
43 new ParallelCompilations().run(); |
45 } |
44 } |
46 |
45 |
47 public void run() throws Exception { |
46 public void run() throws Exception { |
48 ToolBox tb = new ToolBox(); |
|
49 |
|
50 // Generate 10 files |
47 // Generate 10 files |
51 for (int i = 0; i < 10; i++) { |
48 for (int i = 0; i < 10; i++) { |
52 String content = "package foo"+ i + ";\n" + |
49 String content = "package foo"+ i + ";\n" + |
53 "public class Test" + i + "{\n" + |
50 "public class Test" + i + "{\n" + |
54 " public static void main(String[] args) {}\n" + |
51 " public static void main(String[] args) {}\n" + |