for (int i = 0; i < keeps.size(); i++) {
midToKeep.add(ModuleId.newInstance(((Keep) keeps.get(i)).org,
((Keep) keeps.get(i)).module));
}
ModuleDescriptor md = report.toFixedModuleDescriptor(getSettings(), midToKeep);
try {
XmlModuleDescriptorWriter.write(md, dest);
} catch (IOException e) {
throw new BuildException("Failed to write into the file " + dest.getAbsolutePath()
+ " (" + e.getMessage() + ")", e);