use of com.redhat.ceylon.common.tools.ModuleSpec in project ceylon-compiler by ceylon.
the class CeylonP2Tool method run.
@Override
public void run() throws Exception {
RepositoryManager repoManager = getRepositoryManager();
Map<String, ModuleInfo> allModules = new HashMap<>();
for (ModuleSpec module : modules) {
String version = findModuleVersion(module);
msg("collecting.modules", module.toString());
newline();
collectModules(repoManager, module.getName(), version, allModules);
}
// now purge empty modules
purgeMissingModules(allModules);
Map<String, Feature> features = collectFeatures();
Map<String, Category> categoriesByName = null;
if (categories != null) {
categoriesByName = parseCategories(features);
}
msg("generating.artifacts");
newline();
printArtifacts(allModules, features);
msg("generating.content");
newline();
printContent(allModules, features, categoriesByName);
}
Aggregations