org.jfrog.build.extractor.clientConfiguration.util
Class PlaceholderReplacementUtils

java.lang.Object
  extended by org.jfrog.build.extractor.clientConfiguration.util.PlaceholderReplacementUtils

public class PlaceholderReplacementUtils
extends java.lang.Object

Created by Tamirh on 04/05/2016.


Constructor Summary
PlaceholderReplacementUtils()
           
 
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
 

Constructor Detail

PlaceholderReplacementUtils

public PlaceholderReplacementUtils()
Method Detail

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/targetFileName
srcPath - the path which the file name will be replace srcDir/srcPath/srcFileName
Returns:
map with the new targetPath and srcPath as values.