Class MainClassFinder
java.lang.Object
com.bmuschko.gradle.docker.internal.MainClassFinder
Original source from Spring Boot's loader tools licensed under Apache License Version 2.0.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
doWithMainClasses
(File rootFolder, MainClassFinder.MainClassCallback<T> callback) static String
findSingleMainClass
(File rootFolder) static String
findSingleMainClass
(File rootFolder, String annotationName)
-
Constructor Details
-
MainClassFinder
public MainClassFinder()
-
-
Method Details
-
findSingleMainClass
- Throws:
IOException
-
findSingleMainClass
- Throws:
IOException
-
doWithMainClasses
public static <T> T doWithMainClasses(File rootFolder, MainClassFinder.MainClassCallback<T> callback) throws IOException - Throws:
IOException
-