public void compile(File file) throws CompilationFailedException {
        CompilationUnit unit = new CompilationUnit(configuration);
        unit.addSource(file);
        unit.compile();
    }
public void compile ( File file ) throws CompilationFailedException { CompilationUnit unit = new CompilationUnit ( configuration ) ; unit . addSource ( file ) ; unit . compile ( ) ; }
Compiles a single File.