Search in sources :

Example 1 with IProcessingStepDescriptor

use of org.eclipse.equinox.p2.repository.artifact.IProcessingStepDescriptor in project tycho by eclipse.

the class LocalArtifactRepositoryP2APITest method localPackedDescriptorFor.

/**
 * Returns a descriptor of the internally used {@link IArtifactDescriptor} type for the pack200
 * format of the given key.
 */
private static IArtifactDescriptor localPackedDescriptorFor(IArtifactKey key) {
    GAVArtifactDescriptor result = new GAVArtifactDescriptor(key);
    result.setProcessingSteps(new IProcessingStepDescriptor[] { new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true) });
    result.setProperty(IArtifactDescriptor.FORMAT, IArtifactDescriptor.FORMAT_PACKED);
    return result;
}
Also used : IProcessingStepDescriptor(org.eclipse.equinox.p2.repository.artifact.IProcessingStepDescriptor) ProcessingStepDescriptor(org.eclipse.equinox.p2.repository.artifact.spi.ProcessingStepDescriptor)

Example 2 with IProcessingStepDescriptor

use of org.eclipse.equinox.p2.repository.artifact.IProcessingStepDescriptor in project tycho by eclipse.

the class ArtifactRepositoryTestUtils method packedDescriptorFor.

public static IArtifactDescriptor packedDescriptorFor(IArtifactKey key) {
    ArtifactDescriptor result = new ArtifactDescriptor(key);
    result.setProcessingSteps(new IProcessingStepDescriptor[] { new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true) });
    result.setProperty(IArtifactDescriptor.FORMAT, IArtifactDescriptor.FORMAT_PACKED);
    return result;
}
Also used : ArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor) IArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor) IProcessingStepDescriptor(org.eclipse.equinox.p2.repository.artifact.IProcessingStepDescriptor) ProcessingStepDescriptor(org.eclipse.equinox.p2.repository.artifact.spi.ProcessingStepDescriptor)

Aggregations

IProcessingStepDescriptor (org.eclipse.equinox.p2.repository.artifact.IProcessingStepDescriptor)2 ProcessingStepDescriptor (org.eclipse.equinox.p2.repository.artifact.spi.ProcessingStepDescriptor)2 IArtifactDescriptor (org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor)1 ArtifactDescriptor (org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor)1