equal
deleted
inserted
replaced
72 JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null); |
72 JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null); |
73 for (File sp : sourcePath) { |
73 for (File sp : sourcePath) { |
74 File inp = new File(sp, args[0]); |
74 File inp = new File(sp, args[0]); |
75 |
75 |
76 if (inp.canRead()) { |
76 if (inp.canRead()) { |
77 testContent = fm.getRegularFile(inp.toPath()).getCharContent(true).toString(); |
77 testContent = fm.getRegularFile(inp).getCharContent(true).toString(); |
78 } |
78 } |
79 } |
79 } |
80 if (testContent == null) throw new IllegalStateException(); |
80 if (testContent == null) throw new IllegalStateException(); |
81 final List<Diagnostic<?>> diagnostics = new ArrayList<>(); |
81 final List<Diagnostic<?>> diagnostics = new ArrayList<>(); |
82 DiagnosticListener<JavaFileObject> collectDiagnostics = new DiagnosticListener<JavaFileObject>() { |
82 DiagnosticListener<JavaFileObject> collectDiagnostics = new DiagnosticListener<JavaFileObject>() { |