org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.util
Class Utilities
java.lang.Object
org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.util.Utilities
public class Utilities
- extends Object
String Utility methods
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utilities
public Utilities()
getMatch
public static String getMatch(String input,
String regex,
int group)
- Searches for a match in a input String against a regex
- Parameters:
input - input Stringregex - regex to matchgroup - grouping,
- Returns:
- result of the match if found, else empty String
deleteFolderStructure
public static void deleteFolderStructure(File existingDir)
- Deletes a folder structure recursively
- Parameters:
existingDir - folder to delete
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.