Package rife.bld.extension
Class BootJarOperation
Builds and creates a Spring Boot executable Java archive (JAR).
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Performs the BootJar operation.protected File
executeCreateBootInfDirectory
(File stagingDirectory) Part of theexecute
operation, creates theBOOT-INF
staging directory.fromProject
(Project project) Configures the operation from aProject
.Methods inherited from class rife.bld.extension.AbstractBootOperation
destinationDirectory, destinationDirectory, destinationDirectory, destinationDirectory, destinationFileName, destinationFileName, executeCopyBootLoader, executeCopyInfClassesFiles, executeCopyInfLibs, executeCreateArchive, executeCreateManifest, infLibs, infLibs, infLibs, infLibs, infLibs, infLibsPaths, infLibsStrings, launcherClass, launcherClass, launcherLibs, launcherLibs, launcherLibs, launcherLibs, launcherLibs, launcherLibsPaths, launcherLibsStrings, mainClass, mainClass, manifestAttribute, manifestAttributes, manifestAttributes, sourceDirectories, sourceDirectories, sourceDirectories, sourceDirectories, sourceDirectories, sourceDirectoriesPaths, sourceDirectoriesStrings, verifyExecute
Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Constructor Details
-
BootJarOperation
public BootJarOperation()
-
-
Method Details
-
execute
Performs the BootJar operation.- Specified by:
execute
in classAbstractOperation<AbstractBootOperation<BootJarOperation>>
- Throws:
Exception
-
executeCreateBootInfDirectory
Part of theexecute
operation, creates theBOOT-INF
staging directory.- Parameters:
stagingDirectory
- the staging directory- Returns:
- the
BOOT-INF
directory location - Throws:
IOException
- if an error occurs
-
fromProject
Configures the operation from aProject
.Sets the following:
- The
destination file name
toarchiveBaseName
andversion
- The
INF libs
tocompileClasspathJars
andruntimeClasspathJars
- The
launcher class
toJarLauncher
- The
launcher libs
tostandaloneClasspathJars
- The
main class
tomainClass
- The
Manifest-Version
,Main-Class
andStart-Class
manifest attributes
- The
source directories
tobuildMainDirectory
andsrcMainResourcesDirectory
- Specified by:
fromProject
in classAbstractBootOperation<BootJarOperation>
- Parameters:
project
- the project- Returns:
- this operation instance
- Throws:
IOException
- if an error occurs
- The
-