Search in sources :

Example 16 with VersionRange

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

the class MirrorApplicationServiceTest method strictRequirementTo.

private static Set<IRequirement> strictRequirementTo(VersionedId unit) {
    VersionRange strictRange = new VersionRange(unit.getVersion(), true, unit.getVersion(), true);
    IRequirement requirement = new RequiredCapability(IInstallableUnit.NAMESPACE_IU_ID, unit.getId(), strictRange, null, false, false);
    return Collections.singleton(requirement);
}
Also used : IRequirement(org.eclipse.equinox.p2.metadata.IRequirement) RequiredCapability(org.eclipse.equinox.internal.p2.metadata.RequiredCapability) VersionRange(org.eclipse.equinox.p2.metadata.VersionRange)

Aggregations

VersionRange (org.eclipse.equinox.p2.metadata.VersionRange)16 IRequirement (org.eclipse.equinox.p2.metadata.IRequirement)7 IInstallableUnit (org.eclipse.equinox.p2.metadata.IInstallableUnit)3 Version (org.eclipse.equinox.p2.metadata.Version)3 LinkedHashSet (java.util.LinkedHashSet)2 InstallableUnitDescription (org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription)2 IllegalArtifactReferenceException (org.eclipse.tycho.artifacts.IllegalArtifactReferenceException)2 BufferedInputStream (java.io.BufferedInputStream)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 Properties (java.util.Properties)1 MultiStatus (org.eclipse.core.runtime.MultiStatus)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 RequiredCapability (org.eclipse.equinox.internal.p2.metadata.RequiredCapability)1