Package rife.bld.extension
Class BootUtils
java.lang.Object
rife.bld.extension.BootUtils
Collection of utility-type methods used by
Spring Boot operations
.- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Calculates the given file size in bytes, kilobytes, megabytes, gigabytes or terabytes.static String
launcherClass
(Project project, String name) Return the fully qualified name of the launcher class.static void
Makes a directory for the given path, including any necessary but nonexistent parent directories.
-
Method Details
-
fileSize
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
Return the fully qualified name of the launcher class.- Parameters:
project
- the projectname
- the class name- Returns:
- the fully qualified class name
-
mkDirs
Makes a directory for the given path, including any necessary but nonexistent parent directories.- Parameters:
path
- the directory path- Throws:
IOException
- if an error occurs
-