public class PublishedItemsHelper
extends java.lang.Object
| Constructor and Description |
|---|
PublishedItemsHelper() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.Multimap<java.lang.String,java.io.File> |
buildPublishingData(java.io.File checkoutDir,
java.lang.String pattern,
java.lang.String targetPath)
Deprecated.
|
static java.lang.String |
calculateTargetPath(java.lang.String targetPattern,
java.io.File artifactFile)
Calculates the target deployment path of an artifact by it's name
|
static com.google.common.collect.Multimap<java.lang.String,java.lang.String> |
getPublishedItemsPatternPairs(java.lang.String publishedItemsPropertyValue)
Splits a given property value to pairs of source and target strings
the source represents the Ant Pattern to search for
the target represents the target path to deploy the found artifacts
Multi values as acceptable by new lined or comma separated.
|
static java.util.List<java.lang.String> |
parsePatternsFromProperty(java.lang.String publishedItemsPropertyValue)
Splits the given property value by new lines or by commas.
|
static java.lang.String |
removeDoubleDotsFromPattern(java.lang.String pattern) |
static com.google.common.collect.Multimap<java.lang.String,java.io.File> |
wildCardBuildPublishingData(java.io.File checkoutDir,
java.lang.String pattern,
java.lang.String targetPath,
boolean flat,
boolean isRecursive,
boolean regexp)
Deprecated.
|
public static com.google.common.collect.Multimap<java.lang.String,java.lang.String> getPublishedItemsPatternPairs(java.lang.String publishedItemsPropertyValue)
publishedItemsPropertyValue - the string value to split, if the splitter was not found
then the value is treated as a source only (target will be "").public static java.util.List<java.lang.String> parsePatternsFromProperty(java.lang.String publishedItemsPropertyValue)
publishedItemsPropertyValue - The property value to splitpublic static java.lang.String removeDoubleDotsFromPattern(java.lang.String pattern)
@Deprecated
public static com.google.common.collect.Multimap<java.lang.String,java.io.File> buildPublishingData(java.io.File checkoutDir,
java.lang.String pattern,
java.lang.String targetPath)
throws java.io.IOException
checkoutDir - the base directory of which to calculate the given source ant patternpattern - the Ant pattern to calculate the files fromtargetPath - the target path for deployment of a filejava.io.IOException - in case of any file system exception@Deprecated
public static com.google.common.collect.Multimap<java.lang.String,java.io.File> wildCardBuildPublishingData(java.io.File checkoutDir,
java.lang.String pattern,
java.lang.String targetPath,
boolean flat,
boolean isRecursive,
boolean regexp)
checkoutDir - the base directory of which to calculate the given source ant patternpattern - the Ant pattern to calculate the files fromtargetPath - the target path for deployment of a filepublic static java.lang.String calculateTargetPath(java.lang.String targetPattern,
java.io.File artifactFile)
targetPattern - an Ant pattern of the target pathartifactFile - the artifact file to calculate target deployment path for