component-installation-plugin / com.intershop.gradle.component.installation.utils / DescriptorManager

DescriptorManager

class DescriptorManager

This class contains all methods and data to handle the download of the descriptor and all items of the component. The standard Gradle resolution is not used and downloaded items will be not cached.

Constructors

<init>

DescriptorManager(repositories: RepositoryHandler, descriptor: Dependency, ivyPattern: Set<String>)

initialize this class

Properties

descriptorRepo

lateinit var descriptorRepo: Repository

Repository that includes the component with a descriptor.

Functions

addIvyVersion

fun addIvyVersion(repo: Repository): String

Adds a final version string - without any placeholders - to the internal repository object.

addMavenArtifactPath

fun addMavenArtifactPath(repo: Repository): String

Adds a artifact path to an internal repository object of an IVY repository.

getDescriptorMetadata

fun getDescriptorMetadata(targetFile: File): MetaData

Determines the meta data of the descriptor file.

loadArtifactFile

fun loadArtifactFile(artifact: Artifact, target: File): Unit

Load component artifact from the repository. The repository is the first repository with the configured component.

loadDescriptorFile

fun loadDescriptorFile(target: File): Unit

Load descriptor file from the repository. The repository is the first repository with the configured component.

Companion Object Properties

DESCRIPTOR_NAME

const val DESCRIPTOR_NAME: String

Descriptor name.

INTERSHOP_IVY_PATTERN

const val INTERSHOP_IVY_PATTERN: String

Default INTERSHOP IVY pattern for ivy files.

INTERSHOP_PATTERN

const val INTERSHOP_PATTERN: String

Default INTERSHOP IVY pattern for artifacts.

Companion Object Functions

getSnapshotVersionFromMaven

fun getSnapshotVersionFromMaven(metadata: Any, version: String): String

getVersionFromIvyDir

fun getVersionFromIvyDir(moduleDir: File, pattern: String = ""): String

getVersionFromIvyIndex

fun getVersionFromIvyIndex(index: Any, pattern: String = "", baseURL: String = ""): String

getVersionFromMaven

fun getVersionFromMaven(metadata: Any, regex: String = ""): String

getVersioningNodeFromMaven

fun getVersioningNodeFromMaven(metadata: Any): Element?