use of com.sun.tools.javac.file.JavacFileManager in project ceylon-compiler by ceylon.
the class A method getFileManager.
JavaFileManager getFileManager(String classpathProperty, boolean symFileKind, boolean zipFileIndexKind) throws IOException {
Context ctx = new Context();
Options options = Options.instance(ctx);
options.put("useOptimizedZip", Boolean.toString(zipFileIndexKind == USE_ZIP_FILE_INDEX));
if (symFileKind == IGNORE_SYMBOL_FILE)
options.put("ignore.symbol.file", "true");
JavacFileManager fm = new JavacFileManager(ctx, false, null);
List<File> path = getPath(System.getProperty(classpathProperty));
fm.setLocation(CLASS_PATH, path);
return fm;
}
use of com.sun.tools.javac.file.JavacFileManager in project ceylon-compiler by ceylon.
the class T6358024 method main.
public static void main(String... args) throws Throwable {
String self = T6358024.class.getName();
String testSrc = System.getProperty("test.src");
fm = new JavacFileManager(new Context(), false, null);
JavaFileObject f = fm.getFileForInput(testSrc + File.separatorChar + self + ".java");
test(fm, f, new Option[] { new Option("-d", ".") }, 7);
test(fm, f, new Option[] { new XOption("-XprintRounds"), new Option("-processorpath", "."), new Option("-processor", self) }, 12);
}
use of com.sun.tools.javac.file.JavacFileManager in project ceylon-compiler by ceylon.
the class T6358166 method main.
public static void main(String... args) throws Throwable {
String self = T6358166.class.getName();
String testSrc = System.getProperty("test.src");
JavacFileManager fm = new JavacFileManager(new Context(), false, null);
JavaFileObject f = fm.getFileForInput(testSrc + File.separatorChar + self + ".java");
test(fm, f, "-verbose", "-d", ".");
test(fm, f, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self);
}
use of com.sun.tools.javac.file.JavacFileManager in project ceylon-compiler by ceylon.
the class T6838467 method createFileManager.
JavacFileManager createFileManager(boolean useOptimizedZip) {
Context ctx = new Context();
Options options = Options.instance(ctx);
options.put("useOptimizedZip", Boolean.toString(useOptimizedZip));
return new JavacFileManager(ctx, false, null);
}
use of com.sun.tools.javac.file.JavacFileManager in project ceylon-compiler by ceylon.
the class T6877206 method createFileManager.
JavacFileManager createFileManager(boolean useOptimizedZip, boolean useSymbolFile) {
Context ctx = new Context();
Options options = Options.instance(ctx);
options.put("useOptimizedZip", Boolean.toString(useOptimizedZip));
if (!useSymbolFile) {
options.put("ignore.symbol.file", "true");
}
return new JavacFileManager(ctx, false, null);
}
Aggregations