Class MainClassFinder

java.lang.Object
run.halo.gradle.utils.MainClassFinder

public class MainClassFinder extends Object
  • Constructor Details

    • MainClassFinder

      public MainClassFinder()
  • Method Details

    • findSingleMainClass

      public static String findSingleMainClass(File rootDirectory, String superClassName) throws IOException
      Find a single main class from the given rootDirectory. A main class extends the given superClassName will be returned.
      Parameters:
      rootDirectory - the root directory to search
      superClassName - the subclass extends the super class is present main-class class
      Returns:
      the main class or null
      Throws:
      IOException - if the directory cannot be read