Class BootUtils

java.lang.Object
rife.bld.extension.BootUtils

public final class BootUtils extends Object
Collection of utility-type methods used by Spring Boot operations.
Since:
1.0
Author:
Erik C. Thauvin
  • Method Details

    • fileSize

      public static String fileSize(File file)
      Calculates the given file size in bytes, kilobytes, megabytes, gigabytes, or terabytes.
      Parameters:
      file - the file
      Returns:
      the file size in B, KB, MB, GB, or TB.
    • launcherClass

      public static String launcherClass(Project project, String name)
      Return the fully qualified name of the launcher class.
      Parameters:
      project - the project
      name - the class name
      Returns:
      the fully qualified class name