public void compile() throws IOException, CompilationException { VirtualFileManager fileManager = new VirtualFileManager( javaCompiler.getStandardFileManager(null, null, null), sourcePath, classPaths, sourceOutput, classOutput ); compile(fileManager, getFromSourcePath(fileManager.sourcePath)); }
public void compile() throws IOException, CompilationException { VirtualFileManager fileManager = new VirtualFileManager( javaCompiler.getStandardFileManager(null, null, null), sourcePath, classPaths, sourceOutput, classOutput ); compile(fileManager, getFromSourcePath(fileManager.sourcePath)); }
public void compile(String... compilationUnits) throws IOException, CompilationException { // Copy anything that is not a java file RAMFileSystem sourcePath1 = new RAMFileSystem(); sourcePath.copy(new Filter() { public boolean acceptDir(Object dir, String name) throws IOException { return true; } public boolean acceptFile(Object file, String name) throws IOException { return !name.endsWith(".java"); } }, sourcePath1); // VirtualFileManager fileManager = new VirtualFileManager( javaCompiler.getStandardFileManager(null, null, null), sourcePath1, classPaths, sourceOutput, classOutput ); // Collection<JavaFileObject> files = getFromSourcePath(sourcePath, compilationUnits); // compile(fileManager, files); }
public void compile(String... compilationUnits) throws IOException, CompilationException { // Copy anything that is not a java file RAMFileSystem sourcePath1 = new RAMFileSystem(); sourcePath.copy(new Filter() { public boolean acceptDir(Object dir, String name) throws IOException { return true; } public boolean acceptFile(Object file, String name) throws IOException { return !name.endsWith(".java"); } }, sourcePath1); // VirtualFileManager fileManager = new VirtualFileManager( javaCompiler.getStandardFileManager(null, null, null), sourcePath1, classPaths, sourceOutput, classOutput ); // Collection<JavaFileObject> files = getFromSourcePath(sourcePath, compilationUnits); // compile(fileManager, files); }