Search in sources :

Example 1 with ClassifierAndExtension

use of org.eclipse.tycho.repository.publishing.WriteSessionContext.ClassifierAndExtension in project tycho by eclipse.

the class ModuleArtifactRepository method createArtifactDescriptor.

public IArtifactDescriptor createArtifactDescriptor(IArtifactKey key, WriteSessionContext writeSession) {
    ClassifierAndExtension additionalProperties = writeSession.getClassifierAndExtensionForNewKey(key);
    MavenRepositoryCoordinates mavenCoordinates = new MavenRepositoryCoordinates(moduleGAV, additionalProperties.classifier, additionalProperties.fileExtension);
    return new ModuleArtifactDescriptor(key, mavenCoordinates);
}
Also used : MavenRepositoryCoordinates(org.eclipse.tycho.p2.repository.MavenRepositoryCoordinates) ClassifierAndExtension(org.eclipse.tycho.repository.publishing.WriteSessionContext.ClassifierAndExtension) ModuleArtifactDescriptor(org.eclipse.tycho.repository.module.ModuleArtifactRepository.ModuleArtifactDescriptor)

Aggregations

MavenRepositoryCoordinates (org.eclipse.tycho.p2.repository.MavenRepositoryCoordinates)1 ModuleArtifactDescriptor (org.eclipse.tycho.repository.module.ModuleArtifactRepository.ModuleArtifactDescriptor)1 ClassifierAndExtension (org.eclipse.tycho.repository.publishing.WriteSessionContext.ClassifierAndExtension)1