Search in sources :

Example 21 with InstallableUnitDescription

use of org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription in project tycho by eclipse.

the class InstallableUnitUtil method createFeatureIU.

public static IInstallableUnit createFeatureIU(String featureId, String version) {
    InstallableUnitDescription description = createIuDescription(featureId + ".feature.group", version);
    description.setProperty(FEATURE_TYPE_PROPERTY, Boolean.toString(true));
    return MetadataFactory.createInstallableUnit(description);
}
Also used : InstallableUnitDescription(org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription)

Aggregations

InstallableUnitDescription (org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription)19 IInstallableUnit (org.eclipse.equinox.p2.metadata.IInstallableUnit)9 ArrayList (java.util.ArrayList)6 File (java.io.File)4 IProvidedCapability (org.eclipse.equinox.p2.metadata.IProvidedCapability)4 IRequirement (org.eclipse.equinox.p2.metadata.IRequirement)4 Test (org.junit.Test)3 FileInputStream (java.io.FileInputStream)2 IOException (java.io.IOException)2 LinkedHashSet (java.util.LinkedHashSet)2 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 ArtifactKey (org.eclipse.equinox.internal.p2.metadata.ArtifactKey)2 IArtifactKey (org.eclipse.equinox.p2.metadata.IArtifactKey)2 Version (org.eclipse.equinox.p2.metadata.Version)2 VersionRange (org.eclipse.equinox.p2.metadata.VersionRange)2 BufferedInputStream (java.io.BufferedInputStream)1 InputStream (java.io.InputStream)1 HashSet (java.util.HashSet)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1