Lines Matching refs:javac
47 JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
48 CodeSource cs = javac.getClass().getProtectionDomain().getCodeSource();
51 ClassLoader.getSystemResource(javac.getClass().getName().replace(".", "/")+".class"));
56 testSingleSourceDir(javac);
57 testCompositeSourcePath(javac);
58 testMissingResource(javac);
61 private void testSingleSourceDir(JavaCompiler javac) throws Exception {
70 CompilationTask task = javac.getTask(null, null, null,
75 System.err.println("javac result with single source dir: " + result);
79 private void testCompositeSourcePath(JavaCompiler javac) throws Exception {
89 CompilationTask task = javac.getTask(null, null, null,
94 System.err.println("javac result with composite source path: " + result);
98 private void testMissingResource(JavaCompiler javac) throws Exception {
106 CompilationTask task = javac.getTask(null, null, null,
111 System.err.println("javac result when missing resource: " + result);