Class UpdateUtils
java.lang.Object
co.com.bancolombia.factory.upgrades.UpdateUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddToStartIfNotContains(String main, String containsValue, String concatValue) static booleanappendIfNotContains(ModuleBuilder builder, String file, String contains, String toAdd) static StringinsertAfterMatch(String main, String match, String containsValue, String concatValue) static StringinsertBeforeMatch(String main, String match, String containsValue, String concatValue) Inserts concatValue before match if main does not containsValuestatic booleanisNewerVersion(String current, String newer) static Stringstatic booleanupdateConfiguration(ModuleBuilder builder, String file, String configuration, String newConfiguration) static booleanupdateVersions(ModuleBuilder builder, String file, String property, String version)
-
Constructor Details
-
UpdateUtils
public UpdateUtils()
-
-
Method Details
-
appendIfNotContains
public static boolean appendIfNotContains(ModuleBuilder builder, String file, String contains, String toAdd) throws IOException - Throws:
IOException
-
updateVersions
public static boolean updateVersions(ModuleBuilder builder, String file, String property, String version) throws IOException - Throws:
IOException
-
updateConfiguration
public static boolean updateConfiguration(ModuleBuilder builder, String file, String configuration, String newConfiguration) throws IOException - Throws:
IOException
-
insertBeforeMatch
public static String insertBeforeMatch(String main, String match, String containsValue, String concatValue) Inserts concatValue before match if main does not containsValue- Parameters:
main-match-containsValue-concatValue-- Returns:
-
insertAfterMatch
-
addToStartIfNotContains
-
replace
-
isNewerVersion
-