public abstract class MainClassFinder extends Object
public static main method by performing a breadth first
search.| Constructor and Description |
|---|
MainClassFinder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findMainClass(File rootFolder)
Find the main class from a given folder.
|
static String |
findMainClass(JarFile jarFile,
String classesLocation)
Find the main class in a given jar file.
|
public static String findMainClass(File rootFolder) throws IOException
rootFolder - the root folder to searchnullIOExceptionpublic static String findMainClass(JarFile jarFile, String classesLocation) throws IOException
jarFile - the jar file to searchclassesLocation - the location within the jar containing classesnullIOExceptionCopyright © 2013. All rights reserved.