org.jfrog.build.extractor.clientConfiguration.util
Class PlaceholderReplacementUtils
java.lang.Object
org.jfrog.build.extractor.clientConfiguration.util.PlaceholderReplacementUtils
public class PlaceholderReplacementUtils
- extends java.lang.Object
Created by Tamirh on 04/05/2016.
|
Method Summary |
static java.lang.String |
pathToRegExp(java.lang.String path)
|
static java.lang.String |
reformatRegexp(java.lang.String sourceString,
java.lang.String destString,
java.util.regex.Pattern regexPattern)
|
static java.util.Map<java.lang.String,java.lang.String> |
replaceFilesName(java.lang.String targetPath,
java.lang.String srcPath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlaceholderReplacementUtils
public PlaceholderReplacementUtils()
reformatRegexp
public static java.lang.String reformatRegexp(java.lang.String sourceString,
java.lang.String destString,
java.util.regex.Pattern regexPattern)
pathToRegExp
public static java.lang.String pathToRegExp(java.lang.String path)
replaceFilesName
public static java.util.Map<java.lang.String,java.lang.String> replaceFilesName(java.lang.String targetPath,
java.lang.String srcPath)
- Parameters:
targetPath - the path which the file name will be taken targetDir/targetPath/targetFileNamesrcPath - the path which the file name will be replace srcDir/srcPath/srcFileName
- Returns:
- map with the new targetPath and srcPath as values.