Search in sources :

Example 6 with ArtifactKey

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

the class InstallableUnitUtil method createIUArtifact.

public static IInstallableUnit createIUArtifact(String id, String version, String artifactId, String artifactVersion) {
    InstallableUnitDescription description = createIuDescription(id, version);
    description.setArtifacts(new IArtifactKey[] { new ArtifactKey("type", artifactId, Version.create(artifactVersion)) });
    return MetadataFactory.createInstallableUnit(description);
}
Also used : InstallableUnitDescription(org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription) ArtifactKey(org.eclipse.equinox.internal.p2.metadata.ArtifactKey) IArtifactKey(org.eclipse.equinox.p2.metadata.IArtifactKey)

Aggregations

ArtifactKey (org.eclipse.equinox.internal.p2.metadata.ArtifactKey)5 IArtifactKey (org.eclipse.equinox.p2.metadata.IArtifactKey)4 IArtifactDescriptor (org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor)3 ArtifactDescriptor (org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor)3 File (java.io.File)2 IInstallableUnit (org.eclipse.equinox.p2.metadata.IInstallableUnit)2 InstallableUnitDescription (org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription)2 BufferedOutputStream (java.io.BufferedOutputStream)1 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 OutputStream (java.io.OutputStream)1 IStatus (org.eclipse.core.runtime.IStatus)1 Status (org.eclipse.core.runtime.Status)1 SimpleArtifactDescriptor (org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactDescriptor)1 ProvisionException (org.eclipse.equinox.p2.core.ProvisionException)1 Version (org.eclipse.equinox.p2.metadata.Version)1 IPropertyAdvice (org.eclipse.equinox.p2.publisher.actions.IPropertyAdvice)1 IArtifactRepository (org.eclipse.equinox.p2.repository.artifact.IArtifactRepository)1