|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.stueckseln.buildtools.utils.PathTool
public class PathTool
Constructor Summary | |
---|---|
PathTool()
|
Method Summary | |
---|---|
static java.lang.String |
relativePath(java.lang.String base,
java.lang.String subject)
Return relative path for given base and subject relativePath("/home/user","/home/user/.myapp/config") -> .myapp/config relativePath("/home/user","/home/user") -> . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathTool()
Method Detail |
---|
public static java.lang.String relativePath(java.lang.String base, java.lang.String subject)
relativePath("/home/user","/home/user/.myapp/config") -> .myapp/config relativePath("/home/user","/home/user") -> . relativePath("/home/user","/home/user2/.myapp/config") -> null
base
- the path-component which is included in {subject} (starting from root)subject
- the path-component that contains sub-directories 'under' {base} to be returned in relative manner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |