public final class JkLocator
extends java.lang.Object
Constructor and Description |
---|
JkLocator() |
Modifier and Type | Method and Description |
---|---|
static java.nio.file.Path |
getJekaHomeDir()
Returns the directory where is installed the running Jeka instance.
|
static java.nio.file.Path |
getJekaJarPath()
Returns the Jeka jar file currently used in the running process.
|
static java.nio.file.Path |
getJekaRepositoryCache()
Returns the location of the artifact repository cache.
|
static java.nio.file.Path |
getJekaUserHomeDir()
Returns the Jeka user directory.
|
static java.lang.String |
getWrappedJekaVersion(java.nio.file.Path projectRoot)
Returns the Jeka wrapped version declared in the specified project.
|
static java.lang.String |
getWrappedVersionRelativeDir(java.lang.String version)
Returns the relative path from Jeka User Dir
|
public static java.nio.file.Path getJekaJarPath()
public static java.nio.file.Path getJekaHomeDir()
public static java.lang.String getWrappedJekaVersion(java.nio.file.Path projectRoot)
null
if no wrapped
version is declared.public static java.lang.String getWrappedVersionRelativeDir(java.lang.String version)
public static java.nio.file.Path getJekaUserHomeDir()
public static java.nio.file.Path getJekaRepositoryCache()