Search in sources :

Example 1 with FeaturePackPackage

use of org.jboss.galleon.state.FeaturePackPackage in project galleon by wildfly.

the class ProvisionedStateXmlWriter method writeFeaturePack.

private void writeFeaturePack(ElementNode fp, FeaturePack<?> featurePack) {
    addAttribute(fp, Attribute.LOCATION, featurePack.getFPID().toString());
    if (featurePack.hasPackages()) {
        final ElementNode packages = addElement(fp, Element.PACKAGES);
        for (FeaturePackPackage pkg : featurePack.getPackages()) {
            final ElementNode pkgElement = addElement(packages, Element.PACKAGE);
            addAttribute(pkgElement, Attribute.NAME, pkg.getName());
        }
    }
}
Also used : FeaturePackPackage(org.jboss.galleon.state.FeaturePackPackage) ElementNode(org.jboss.galleon.xml.util.ElementNode)

Aggregations

FeaturePackPackage (org.jboss.galleon.state.FeaturePackPackage)1 ElementNode (org.jboss.galleon.xml.util.ElementNode)1