Package com.google.cloud.tools.jib.api
Class MainClassFinder
- java.lang.Object
-
- com.google.cloud.tools.jib.api.MainClassFinder
-
public class MainClassFinder extends java.lang.Object
Finds main classes in a list of class files. Main classes are classes that define thepublic static void main(String[] args)
method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MainClassFinder.Result
-
Constructor Summary
Constructors Constructor Description MainClassFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MainClassFinder.Result
find(java.util.List<java.nio.file.Path> files, java.util.function.Consumer<LogEvent> logger)
Tries to find classes withpsvm
(see class javadoc) infiles
.
-
-
-
Method Detail
-
find
public static MainClassFinder.Result find(java.util.List<java.nio.file.Path> files, java.util.function.Consumer<LogEvent> logger)
Tries to find classes withpsvm
(see class javadoc) infiles
.- Parameters:
files
- the files to searchlogger
- aConsumer
used to handle log events- Returns:
- the
MainClassFinder.Result
of the main class finding attempt
-
-