|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.natives.util.FileUtil
public class FileUtil
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static java.io.File[] |
breakPaths(java.lang.String paths)
|
static java.io.File |
getRelativeFile(java.io.File workingDirectory,
java.io.File targetFile)
Returns a relative path for the targetFile relative to the base directory. |
static java.lang.String |
truncatePath(java.lang.String path,
java.lang.String baseDirectory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static java.io.File getRelativeFile(java.io.File workingDirectory,
java.io.File targetFile)
canonicalBase - base directory as returned by File.getCanonicalPath()targetFile - target file
public static java.io.File[] breakPaths(java.lang.String paths)
public static java.lang.String truncatePath(java.lang.String path,
java.lang.String baseDirectory)
path - StringbaseDirectory - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||