@groovy.transform.CompileStatic class MainClassFinder extends java.lang.Object
Modifiers | Name | Description |
---|---|---|
static class |
MainClassFinder.MainMethodFinder |
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
MAIN_METHOD_NAME |
|
private static groovyjarjarasm.asm.Type |
MAIN_METHOD_TYPE |
|
static java.lang.String |
ROOT_FOLDER_PATH |
|
private static groovyjarjarasm.asm.Type |
STRING_ARRAY_TYPE |
|
private static java.util.Map<java.lang.String, java.lang.String> |
mainClasses |
Type | Name and description |
---|---|
static java.util.Map<java.lang.String, java.lang.String> |
mainClasses |
Constructor and description |
---|
MainClassFinder
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.String |
findMainClass(java.io.File rootFolder) |
|
private static java.io.File |
findRootDirectory(java.io.File file) |
|
protected static boolean |
isClassFile(java.io.File f) |
|
protected static boolean |
isMainClass(groovyjarjarasm.asm.ClassReader classReader) |
|
static java.lang.String |
searchMainClass(java.net.URI path) Searches for the main class relative to the give path that is within the project tree |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Searches for the main class relative to the give path that is within the project tree
path
- The path as a URIGroovy Documentation