use of org.eclipse.tycho.model.Category in project tycho by eclipse.
the class PublishCategoriesMojo method publishContent.
@Override
protected Collection<DependencySeed> publishContent(PublisherServiceFactory publisherServiceFactory) throws MojoExecutionException, MojoFailureException {
PublisherService publisherService = publisherServiceFactory.createPublisher(getReactorProject(), getEnvironments());
try {
List<DependencySeed> categoryIUs = new ArrayList<>();
for (Category category : getCategories()) {
final File buildCategoryFile = prepareBuildCategory(category, getBuildDirectory());
Collection<DependencySeed> ius = publisherService.publishCategories(buildCategoryFile);
categoryIUs.addAll(ius);
}
return categoryIUs;
} catch (FacadeException e) {
throw new MojoExecutionException("Exception while publishing categories: " + e.getMessage(), e);
}
}
Aggregations