Search in sources :

Example 1 with FeaturePackDescription

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);
    }
}
Also used : ProvisioningException(org.jboss.galleon.ProvisioningException) IOException(java.io.IOException) FeaturePackDescription(org.jboss.galleon.layout.FeaturePackDescription)

Aggregations

IOException (java.io.IOException)1 ProvisioningException (org.jboss.galleon.ProvisioningException)1 FeaturePackDescription (org.jboss.galleon.layout.FeaturePackDescription)1