Class MainClassFinder
- java.lang.Object
-
- com.bmuschko.gradle.docker.internal.MainClassFinder
-
public class MainClassFinder extends Object
Original source from Spring Boot's loader tools licensed under Apache License Version 2.0.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MainClassFinder.MainClass
static interface
MainClassFinder.MainClassCallback<T>
-
Constructor Summary
Constructors Constructor Description MainClassFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
doWithMainClasses(File rootFolder, MainClassFinder.MainClassCallback<T> callback)
static String
findSingleMainClass(File rootFolder)
static String
findSingleMainClass(File rootFolder, String annotationName)
-
-
-
Method Detail
-
findSingleMainClass
public static String findSingleMainClass(File rootFolder) throws IOException
- Throws:
IOException
-
findSingleMainClass
public static String findSingleMainClass(File rootFolder, String annotationName) throws IOException
- Throws:
IOException
-
doWithMainClasses
public static <T> T doWithMainClasses(File rootFolder, MainClassFinder.MainClassCallback<T> callback) throws IOException
- Throws:
IOException
-
-