|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.util.ConfigurationHelper
public class ConfigurationHelper
Constructor Summary | |
---|---|
ConfigurationHelper()
|
Method Summary | |
---|---|
static String |
decodeUserHome(String path)
Resolves the given path by means of eventually replacing ~ with the users home directory, taken from the system property user.home . |
static File |
getExistHome()
Returns a file handle for eXist's home directory. |
static File |
lookup(String path)
Returns a file handle for the given path, while path specifies
the path to an eXist configuration file or directory. |
static File |
lookup(String path,
String parent)
Returns a file handle for the given path, while path specifies
the path to an eXist configuration file or directory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationHelper()
Method Detail |
---|
public static File getExistHome()
null
public static File lookup(String path)
path
specifies
the path to an eXist configuration file or directory.
exist.home
or the current working directory, in case exist.home
was not set.
path
- the file path
public static File lookup(String path, String parent)
path
specifies
the path to an eXist configuration file or directory.
parent
is null, then relative paths are being interpreted
relative to exist.home
or the current working directory, in
case exist.home
was not set.
path
- path to the file or directoryparent
- parent directory used to lookup path
public static String decodeUserHome(String path)
user.home
.
path
- the path to resolve
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |