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.
DescriptorManager(repositories: RepositoryHandler, descriptor: Dependency, ivyPattern: Set<String>)
initialize this class |
lateinit var descriptorRepo: Repository
Repository that includes the component with a descriptor. |
fun addIvyVersion(repo: Repository): String
Adds a final version string - without any placeholders - to the internal repository object. |
|
fun addMavenArtifactPath(repo: Repository): String
Adds a artifact path to an internal repository object of an IVY repository. |
|
fun getDescriptorMetadata(targetFile: File): MetaData
Determines the meta data of the descriptor file. |
|
fun loadArtifactFile(artifact: Artifact, target: File): Unit
Load component artifact from the repository. The repository is the first repository with the configured component. |
|
fun loadDescriptorFile(target: File): Unit
Load descriptor file from the repository. The repository is the first repository with the configured component. |
const val DESCRIPTOR_NAME: String
Descriptor name. |
|
const val INTERSHOP_IVY_PATTERN: String
Default INTERSHOP IVY pattern for ivy files. |
|
const val INTERSHOP_PATTERN: String
Default INTERSHOP IVY pattern for artifacts. |
fun getSnapshotVersionFromMaven(metadata: Any, version: String): String |
|
fun getVersionFromIvyDir(moduleDir: File, pattern: String = ""): String |
|
fun getVersionFromIvyIndex(index: Any, pattern: String = "", baseURL: String = ""): String |
|
fun getVersionFromMaven(metadata: Any, regex: String = ""): String |
|
fun getVersioningNodeFromMaven(metadata: Any): Element? |