use of org.jboss.galleon.universe.Channel in project galleon by wildfly.
the class ProvisioningLayout method normalize.
private FeaturePackLocation normalize(FeaturePackLocation fpl) throws ProvisioningException {
if (fpl.isMavenCoordinates()) {
return fpl;
}
if (fpl.getChannelName() != null) {
if (fpl.getBuild() != null) {
return fpl;
}
return resolveLatestBuild(fpl, layoutFactory.getUniverseResolver().getChannel(fpl));
}
final Channel channel = layoutFactory.getUniverseResolver().getChannel(fpl);
if (fpl.getBuild() != null) {
final FeaturePackLocation updatedFpl = new FeaturePackLocation(fpl.getUniverse(), fpl.getProducerName(), channel.getName(), fpl.getFrequency(), fpl.getBuild());
registerResolvedVersion(fpl.getProducer(), updatedFpl);
return updatedFpl;
}
return resolveLatestBuild(fpl, channel);
}
Aggregations