outputFolder);
//for (ICompilationUnit unit : reachableCompilationUnits)
//{
ICompilationUnit unit = cu;
IASWriter jswriter = JSSharedData.backend
.createWriter(project,
(List<ICompilerProblem>) errors,
unit, false);
//if (unit.getCompilationUnitType() != ICompilationUnit.UnitType.AS_UNIT)
//continue;
// XXX hack what is CountingOutputStream?
BufferedOutputStream out =
new BufferedOutputStream(
new FileOutputStream(outputClassFile));
jswriter.writeTo(out);
out.flush();
out.close();
jswriter.close();
//}
}
}
compilationSuccess = true;