public class ReadyApiPaths extends Object
Modifier and Type | Field and Description |
---|---|
static String |
READY_API_HOME_DIR |
Constructor and Description |
---|
ReadyApiPaths() |
Modifier and Type | Method and Description |
---|---|
static String |
absolutePath(Path path) |
static Path |
ensureExists(Path path)
Gets a Path which definitely exists.
|
static Path |
ensureExistsAndCanWrite(Path path)
Gets a Path which definitely exists and can be written to.
|
static Path |
readyApiDataDir() |
static Path |
readyApiHomeDir() |
static Path |
readyApiLogDir() |
static Path |
readyApiVirtLogDir() |
static Path |
relativeToReadyApiDataDir(String path,
String... paths) |
static Path |
relativeToReadyApiHomeDir(String path,
String... paths) |
static Path |
serviceVHomeDir() |
public static final String READY_API_HOME_DIR
public static Path ensureExistsAndCanWrite(Path path)
path
- public static Path ensureExists(Path path)
path
- public static Path readyApiDataDir()
RuntimeException
- if cannot get a home directory or write to the resolved directory.public static Path readyApiLogDir()
RuntimeException
- if cannot get a home directory or write to the resolved directory.public static Path readyApiVirtLogDir()
RuntimeException
- if cannot get a home directory or write to the resolved directory.public static Path relativeToReadyApiDataDir(String path, String... paths)
path
- initial pathpaths
- sub-pathspublic static Path readyApiHomeDir()
RuntimeException
- if cannot get a home directory or write to the resolved directory.public static Path serviceVHomeDir()
RuntimeException
- if cannot get a home directory or write to the resolved directory.public static Path relativeToReadyApiHomeDir(String path, String... paths)
path
- initial pathpaths
- sub-pathsCopyright © 2019. All rights reserved.