Class RepositoryHelper
java.lang.Object
eu.qualimaster.easy.extension.internal.RepositoryHelper
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
public class RepositoryHelper
extends Object
implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
Access to the pipeline elements repository as far as needed from VIL.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringobtainArtifactUrl(String artifactSpec, String classifier, String suffix) Obtains the URL for a specific artifact.static voidChanges the repository base URL for resolving artifacts.
-
Constructor Details
-
RepositoryHelper
public RepositoryHelper()
-
-
Method Details
-
obtainArtifactUrl
public static String obtainArtifactUrl(String artifactSpec, String classifier, String suffix) throws net.ssehub.easy.instantiation.core.model.common.VilException Obtains the URL for a specific artifact. In case of snapshot artifacts, the most recently deployed artifact URL is determined. Requires a correct infrastructure configuration.- Parameters:
artifactSpec- the artifact specification (may be null)classifier- the optional classifier (may be null, empty becomes null)suffix- file name extension- Returns:
- the URL to the artifact, may be undefined (null) if the URL cannot be constructed
- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case of further failures- See Also:
-
setRepositoryBaseUrl
Changes the repository base URL for resolving artifacts.- Parameters:
url- the base URL of the repository
-