use of org.eclipse.ceylon.cmr.api.ModuleVersionArtifact in project ceylon by eclipse.
the class JarUtils method readModuleInfo.
@Override
public ModuleVersionDetails readModuleInfo(String moduleName, String version, File moduleArchive, boolean includeMembers, Overrides overrides) {
ModuleInfo info = getDependencies(moduleArchive, moduleName, version, overrides);
ModuleVersionDetails mvd = new ModuleVersionDetails(moduleName, version, info != null ? info.getGroupId() : null, info != null ? info.getArtifactId() : null);
mvd.getArtifactTypes().add(new ModuleVersionArtifact(ArtifactContext.JAR, null, null));
if (info != null) {
mvd.getDependencies().addAll(info.getDependencies());
}
if (includeMembers) {
mvd.setMembers(getMembers(moduleArchive));
}
return mvd;
}
Aggregations