public class SpecsHelper
extends java.lang.Object
| Constructor and Description |
|---|
SpecsHelper(org.jfrog.build.api.util.Log log) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> com.google.common.collect.Multimap<K,V> |
createMultiMap(java.util.Map<K,V> input) |
java.util.List<org.jfrog.build.api.Dependency> |
downloadArtifactsBySpec(java.lang.String spec,
ArtifactoryManager client,
java.lang.String targetDirectory)
Downloads Artifacts by spec and returns a list of the downloaded dependencies.
|
boolean |
editPropertiesBySpec(java.lang.String spec,
ArtifactoryManager artifactoryManager,
EditPropertiesHelper.EditPropertiesActionType editType,
java.lang.String props) |
static void |
fillPropertiesMap(java.lang.String props,
com.google.common.collect.ArrayListMultimap<java.lang.String,java.lang.String> propertiesMap) |
static com.google.common.collect.ArrayListMultimap<java.lang.String,java.lang.String> |
getPropertiesMap(java.lang.String props)
Builds a map representing Spec's properties
|
Spec |
getSpecFromFile(java.io.File specFile,
SpecsValidator specsValidator)
Converts File to Spec object
|
Spec |
getSpecFromString(java.lang.String specStr,
SpecsValidator specsValidator)
Converts String to Spec object
|
java.util.List<org.jfrog.build.api.Artifact> |
uploadArtifactsBySpec(java.lang.String uploadSpec,
java.io.File workspace,
java.util.Map<java.lang.String,java.lang.String> buildProperties,
ArtifactoryManagerBuilder artifactoryManagerBuilder)
Upload artifacts according to a given spec, return a list describing the deployed items.
|
java.util.List<org.jfrog.build.api.Artifact> |
uploadArtifactsBySpec(java.lang.String uploadSpec,
java.io.File workspace,
com.google.common.collect.Multimap<java.lang.String,java.lang.String> buildProperties,
ArtifactoryManagerBuilder artifactoryManagerBuilder)
Upload artifacts according to a given spec, return a list describing the deployed items.
|
java.util.List<org.jfrog.build.api.Artifact> |
uploadArtifactsBySpec(java.lang.String uploadSpec,
int numberOfThreads,
java.io.File workspace,
com.google.common.collect.Multimap<java.lang.String,java.lang.String> buildProperties,
ArtifactoryManagerBuilder artifactoryManagerBuilder)
Upload artifacts according to a given spec, return a list describing the deployed items.
|
public java.util.List<org.jfrog.build.api.Artifact> uploadArtifactsBySpec(java.lang.String uploadSpec,
java.io.File workspace,
java.util.Map<java.lang.String,java.lang.String> buildProperties,
ArtifactoryManagerBuilder artifactoryManagerBuilder)
throws java.lang.Exception
uploadSpec - The required spec represented as Stringworkspace - File object that represents the workspacebuildProperties - Upload propertiesartifactoryManagerBuilder - ArtifactoryManagerBuilder which will build the ArtifactoryManager to perform the actual uploadjava.io.IOException - Thrown if any error occurs while reading the file, calculating the
checksums or in case of any file system exceptionjava.lang.Exceptionpublic java.util.List<org.jfrog.build.api.Artifact> uploadArtifactsBySpec(java.lang.String uploadSpec,
java.io.File workspace,
com.google.common.collect.Multimap<java.lang.String,java.lang.String> buildProperties,
ArtifactoryManagerBuilder artifactoryManagerBuilder)
throws java.lang.Exception
uploadSpec - The required spec represented as Stringworkspace - File object that represents the workspacebuildProperties - Upload propertiesartifactoryManagerBuilder - ArtifactoryManagerBuilder which will build the ArtifactoryManager to perform the actual uploadjava.io.IOException - Thrown if any error occurs while reading the file, calculating the
checksums or in case of any file system exceptionjava.lang.Exceptionpublic java.util.List<org.jfrog.build.api.Artifact> uploadArtifactsBySpec(java.lang.String uploadSpec,
int numberOfThreads,
java.io.File workspace,
com.google.common.collect.Multimap<java.lang.String,java.lang.String> buildProperties,
ArtifactoryManagerBuilder artifactoryManagerBuilder)
throws java.lang.Exception
uploadSpec - The required spec represented as StringnumberOfThreads - Number of concurrent threads to use for handling uploadsworkspace - File object that represents the workspacebuildProperties - Upload propertiesartifactoryManagerBuilder - ArtifactoryManagerBuilder which will build the ArtifactoryManager per the number of passed threads number to perform the actual uploadjava.io.IOException - Thrown if any error occurs while reading the file, calculating the
checksums or in case of any file system exceptionjava.lang.Exceptionpublic static <K,V> com.google.common.collect.Multimap<K,V> createMultiMap(java.util.Map<K,V> input)
public java.util.List<org.jfrog.build.api.Dependency> downloadArtifactsBySpec(java.lang.String spec,
ArtifactoryManager client,
java.lang.String targetDirectory)
throws java.io.IOException
spec - the spec to use for download.client - the client to use for download.targetDirectory - the target directory in case of relative path in the specjava.io.IOException - in case of IOExceptionpublic Spec getSpecFromFile(java.io.File specFile, SpecsValidator specsValidator) throws java.io.IOException
specFile - the File to convertjava.io.IOException - in case of IO problempublic Spec getSpecFromString(java.lang.String specStr, SpecsValidator specsValidator) throws java.io.IOException
specStr - the String to convertjava.io.IOException - in case of IO problempublic boolean editPropertiesBySpec(java.lang.String spec,
ArtifactoryManager artifactoryManager,
EditPropertiesHelper.EditPropertiesActionType editType,
java.lang.String props)
throws java.io.IOException
java.io.IOExceptionpublic static com.google.common.collect.ArrayListMultimap<java.lang.String,java.lang.String> getPropertiesMap(java.lang.String props)
props - Spec's propertiespublic static void fillPropertiesMap(java.lang.String props,
com.google.common.collect.ArrayListMultimap<java.lang.String,java.lang.String> propertiesMap)