org.tigris.subversion.svnclientadapter
public class SVNBaseDir extends java.lang.Object
Constructor and Description |
---|
SVNBaseDir() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getBaseDir(java.io.File file)
get the base directory for the given file
|
static java.io.File |
getBaseDir(java.io.File[] files)
get the base directory for a set of files or null if there is no base
directory for the set of files
|
protected static java.io.File |
getCommonPart(java.io.File file1,
java.io.File file2)
get the common directory between file1 and file2 or null if the files
have nothing in common it always returns a directory unless file1 is the
same file than file2
|
static java.lang.String |
getRelativePath(java.io.File rootDir,
java.io.File file)
get path of file relative to rootDir
|
static java.io.File |
getRootDir(java.io.File[] files)
get the root directory for a set of files ie the ancestor of all given
files
|
protected static java.io.File getCommonPart(java.io.File file1, java.io.File file2)
file1
- file2
- public static java.io.File getBaseDir(java.io.File file)
file
- public static java.io.File getBaseDir(java.io.File[] files)
files
- public static java.io.File getRootDir(java.io.File[] files)
files
- public static java.lang.String getRelativePath(java.io.File rootDir, java.io.File file) throws SVNClientException
rootDir
- file
- SVNClientException