Class Layouts.Jar
java.lang.Object
org.springframework.boot.loader.tools.Layouts.Jar
- All Implemented Interfaces:
Layout,RepackagingLayout
- Direct Known Subclasses:
Layouts.Expanded,Layouts.None
- Enclosing class:
- Layouts
Executable JAR layout.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the location of classes within the archive.Returns the location of the classpath index file that should be written ornullif not index is required.Returns the launcher class name for this layout.Returns the location of the layer index file that should be written ornullif not index is required.getLibraryLocation(String libraryName, LibraryScope scope) Returns the destination path for a given library.Returns the location to which classes should be moved.booleanReturns if loader classes should be included to make the archive executable.
-
Constructor Details
-
Jar
public Jar()
-
-
Method Details
-
getLauncherClassName
Description copied from interface:LayoutReturns the launcher class name for this layout.- Specified by:
getLauncherClassNamein interfaceLayout- Returns:
- the launcher class name
-
getLibraryLocation
Description copied from interface:LayoutReturns the destination path for a given library.- Specified by:
getLibraryLocationin interfaceLayout- Parameters:
libraryName- the name of the library (excluding any path)scope- the scope of the library- Returns:
- the location of the library relative to the root of the archive (should end
with '/') or
nullif the library should not be included.
-
getClassesLocation
Description copied from interface:LayoutReturns the location of classes within the archive.- Specified by:
getClassesLocationin interfaceLayout- Returns:
- the classes location
-
getRepackagedClassesLocation
Description copied from interface:RepackagingLayoutReturns the location to which classes should be moved.- Specified by:
getRepackagedClassesLocationin interfaceRepackagingLayout- Returns:
- the repackaged classes location
-
getClasspathIndexFileLocation
Description copied from interface:LayoutReturns the location of the classpath index file that should be written ornullif not index is required. The result should include the filename and is relative to the root of the jar.- Specified by:
getClasspathIndexFileLocationin interfaceLayout- Returns:
- the classpath index file location
-
getLayersIndexFileLocation
Description copied from interface:LayoutReturns the location of the layer index file that should be written ornullif not index is required. The result should include the filename and is relative to the root of the jar.- Specified by:
getLayersIndexFileLocationin interfaceLayout- Returns:
- the layer index file location
-
isExecutable
public boolean isExecutable()Description copied from interface:LayoutReturns if loader classes should be included to make the archive executable.- Specified by:
isExecutablein interfaceLayout- Returns:
- if the layout is executable
-