// setup from plugin configuration
generator.setOptions(options);
generator.setProject(project);
Result r = generator.execute();
// Embed scr descriptors in target jar
List<String> scrFiles = r.getScrFiles();
if (scrFiles != null) {
StringBuilder sb = new StringBuilder();
for (String scrFile : scrFiles) {
log.info("SCR descriptor result file: " + scrFile);
sb.append(scrFile);
sb.append(",");
putResource(analyzer, scrFile);
}
sb.setLength(sb.length() - 1);
addServiceComponentHeader(analyzer, sb.toString());
}
// Embed metatype descriptors in target jar
List<String> metaTypeFiles = r.getMetatypeFiles();
if (metaTypeFiles != null) {
for (String metaTypeFile : metaTypeFiles) {
log.info("Meta Type result file: " + metaTypeFile);
putResource(analyzer, metaTypeFile);
}