Class PathUtils
java.lang.Object
org.apache.maven.archetype.common.util.PathUtils
public class PathUtils
extends java.lang.Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic java.lang.String
convertPathForOS
(java.lang.String path) This method converts all \ or / chars to File.separatorChar.static java.lang.String
getDirectory
(java.lang.String file, int level) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
convertPathForOS
public static java.lang.String convertPathForOS(java.lang.String path) This method converts all \ or / chars to File.separatorChar.- Parameters:
path
-- Returns:
- converted path
-
getDirectory
public static java.lang.String getDirectory(java.lang.String file, int level)
-