public final class JkExternalToolApi
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkExternalToolApi.InitKBeans |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMD_APPEND_SUFFIX_PROP |
static java.lang.String |
CMD_PREFIX_PROP |
static java.lang.String |
CMD_SUBSTITUTE_SYMBOL |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ansiText(java.lang.String templatedText)
Converts the given templated text to ANSI escape sequences.
|
static java.util.List<java.lang.String[]> |
availableOptions()
Retrieves a list of available command-line options for the annotated class.
|
static java.lang.String |
getBeanName(java.lang.String fullyQualifiedClassName)
Retrieves the bean name for the given fully qualified class name.
|
static java.util.List<java.lang.String> |
getCachedBeanClassNames(java.nio.file.Path baseDir)
Returns the cached bean class names for the given base dir.
|
static java.util.Map<java.lang.String,java.lang.String> |
getCmdShorthandsProperties(java.nio.file.Path baseDir)
Returns the command shorthand properties defined in properties files, from
the specified base dir context.
|
static JkExternalToolApi.InitKBeans |
getDefaultAndInitKBeans(java.nio.file.Path baseDir)
Retrieves the default and initialization KBean class names for the specified base directory.
|
static java.util.List<java.nio.file.Path> |
getDefDependenciesClasspath(java.nio.file.Path projectDir)
Returns the default dependencies classpath for the specified project directory..
|
static JkRepoSet |
getDownloadRepos(java.nio.file.Path baseDir)
Returns download repositories for the specified base directory.
|
static JkProperties |
getGlobalProperties()
Returns the global properties.
|
static java.nio.file.Path |
getImlFile(java.nio.file.Path moduleDir)
Retrieves the path of the iml file for the given module directory.
|
static java.nio.file.Path |
getKBeanClassnameCacheFile(java.nio.file.Path baseDir)
Resolves and retrieves the path to the KBean class name cache file located in the specified base directory.
|
static java.nio.file.Path |
getKBeanClasspathCacheFile(java.nio.file.Path baseDir)
Resolves the path to the KBean classpath cache file located in the specified base directory.
|
static JkProperties |
getProperties(java.nio.file.Path baseDir)
Returns the properties defined from the specifies base dir..
|
static boolean |
isJekaProject(java.nio.file.Path candidate)
Returns
true if the specified path is the root directory of a Jeka project. |
static boolean |
kbeanNameMatches(java.lang.String className,
java.lang.String candidate)
Checks if the specified className matches the given candidate name.
|
public static final java.lang.String CMD_PREFIX_PROP
public static final java.lang.String CMD_APPEND_SUFFIX_PROP
public static final java.lang.String CMD_SUBSTITUTE_SYMBOL
public static java.lang.String ansiText(java.lang.String templatedText)
templatedText
- the input text to be converted to ANSI escape sequencespublic static java.lang.String getBeanName(java.lang.String fullyQualifiedClassName)
public static java.util.List<java.lang.String> getCachedBeanClassNames(java.nio.file.Path baseDir)
public static JkRepoSet getDownloadRepos(java.nio.file.Path baseDir)
public static boolean isJekaProject(java.nio.file.Path candidate)
true
if the specified path is the root directory of a Jeka project.public static java.nio.file.Path getImlFile(java.nio.file.Path moduleDir)
public static java.util.Map<java.lang.String,java.lang.String> getCmdShorthandsProperties(java.nio.file.Path baseDir)
public static JkProperties getProperties(java.nio.file.Path baseDir)
public static JkProperties getGlobalProperties()
public static java.util.List<java.nio.file.Path> getDefDependenciesClasspath(java.nio.file.Path projectDir)
public static boolean kbeanNameMatches(java.lang.String className, java.lang.String candidate)
className
- The fully qualified class name to compare.candidate
- The name candidate to match against the class name.public static java.nio.file.Path getKBeanClassnameCacheFile(java.nio.file.Path baseDir)
baseDir
- the root directory from which the path will be resolvedpublic static java.nio.file.Path getKBeanClasspathCacheFile(java.nio.file.Path baseDir)
baseDir
- the base directory from which the path to the KBean classpath cache file will be resolvedpublic static java.util.List<java.lang.String[]> availableOptions()
public static JkExternalToolApi.InitKBeans getDefaultAndInitKBeans(java.nio.file.Path baseDir)
baseDir
- the base directory from which to read and determine the KBean class namesEngineClasspathCache.DefafaulAndInitKBeans
containing the default
and initialization KBean class names