for (GeneratedResource generatedArtifact : generatedArtifacts.find(GeneratedResource.class)) {
startEntry(Libraries.DIRECTORY_GENERATED_ARTIFACTS + generatedArtifact.getPartialPath());
try {
generatedArtifact.writeTo(TreeLogger.NULL, zipOutputStream);
} catch (UnableToCompleteException e) {
throw new CompilerIoException("Failed to read generated artifact "
+ generatedArtifact.getPartialPath() + " to write into new library file "
+ zipFile.getPath() + ".", e);
}
}
}