Example usage for org.springframework.boot.loader.tools MainClassFinder findSingleMainClass

List of usage examples for org.springframework.boot.loader.tools MainClassFinder findSingleMainClass

Introduction

In this page you can find the example usage for org.springframework.boot.loader.tools MainClassFinder findSingleMainClass.

Prototype

public static String findSingleMainClass(JarFile jarFile, String classesLocation, String annotationName)
        throws IOException 

Source Link

Document

Find a single main class in a given jar file.

Usage

From source file:org.springframework.boot.loader.tools.Repackager.java

protected String findMainMethod(JarFile source) throws IOException {
    return MainClassFinder.findSingleMainClass(source, this.layout.getClassesLocation(),
            SPRING_BOOT_APPLICATION_CLASS_NAME);
}