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());
}
}
}
Aggregations