use of org.jboss.galleon.layout.FeaturePackDescription in project galleon by wildfly.
the class UniverseResolverBuilder method addLocalFeaturePack.
@SuppressWarnings("unchecked")
public T addLocalFeaturePack(Path path) throws ProvisioningException {
if (path == null) {
return (T) this;
}
try {
FeaturePackDescription featurePackLayout = FeaturePackDescriber.describeFeaturePackZip(path);
getLocalFeaturePacks().put(featurePackLayout.getFPID(), path);
return (T) this;
} catch (IOException e) {
throw new ProvisioningException(e);
}
}
Aggregations