langtools/test/tools/javac/processing/options/testPrintProcessorInfo/TestWithXstdout.java
equal
deleted
inserted
replaced
54 throw new Exception("differences found"); |
54 throw new Exception("differences found"); |
55 } |
55 } |
56 |
56 |
57 static void run_javac(String... args) throws IOException, InterruptedException { |
57 static void run_javac(String... args) throws IOException, InterruptedException { |
58 File javaHome = new File(System.getProperty("java.home")); |
58 File javaHome = new File(System.getProperty("java.home")); |
59 if (javaHome.getName().equals("jre")) |
|
60 javaHome = javaHome.getParentFile(); |
|
61 File javac = new File(new File(javaHome, "bin"), "javac"); |
59 File javac = new File(new File(javaHome, "bin"), "javac"); |
62 |
60 |
63 List<String> opts = new ArrayList<>(); |
61 List<String> opts = new ArrayList<>(); |
64 opts.add(javac.getPath()); |
62 opts.add(javac.getPath()); |
65 |
63 |