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 searchnull
IOException
public static String findMainClass(JarFile jarFile, String classesLocation) throws IOException
jarFile
- the jar file to searchclassesLocation
- the location within the jar containing classesnull
IOException
Copyright © 2013. All rights reserved.