|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.persister.xstream.RelativePath
public class RelativePath
This class converts an Absolute Path into a Relative Path. Used to ensure we only persist relative paths.
Method Summary | |
---|---|
static java.util.List |
getPathElements(java.io.File file)
Get a list of the files individual path elements. |
static java.lang.String |
getRelativePath(java.io.File homeDirectory,
java.io.File fileToMakeRelative)
get relative path of fileToMakeRelative with respect to the homeDirectory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getRelativePath(java.io.File homeDirectory, java.io.File fileToMakeRelative)
homeDirectory
- base directoryfileToMakeRelative
- File we are generating the relative path
public static java.util.List getPathElements(java.io.File file)
file
- input file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |