com.scooterframework.tools.common
Class ToolsUtil
java.lang.Object
com.scooterframework.tools.common.ToolsUtil
public class ToolsUtil
- extends java.lang.Object
Util class contains utility methods for tools.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToolsUtil
public ToolsUtil()
isTextFile
public static boolean isTextFile(java.io.File file)
- Checks whether the file is a test file. This method should only be used
by Scooter's code generator.
- Parameters:
file
- the file to check
- Returns:
- true if the file is text file.
detectRootPath
public static java.lang.String detectRootPath()
throws java.lang.Exception
- Throws:
java.lang.Exception
detectImplicitAppName
public static java.lang.String detectImplicitAppName(java.lang.String webappsPath)
throws java.lang.Exception
- Throws:
java.lang.Exception
containsPath
public static boolean containsPath(java.lang.String s)
getPathAndName
public static java.lang.String[] getPathAndName(java.lang.String s)
setSystemProperty
public static java.lang.String setSystemProperty(java.lang.String key,
java.lang.String defaultValue)
processAllFiles
public static void processAllFiles(java.io.File targetDir,
java.util.Map<java.lang.String,java.lang.String> allProps)
throws java.io.IOException
- Throws:
java.io.IOException
validatePathExistence
public static void validatePathExistence(java.lang.String path)