public static class Layouts.Jar extends Object implements RepackagingLayout
Constructor and Description |
---|
Jar() |
Modifier and Type | Method and Description |
---|---|
String |
getClassesLocation()
Returns the location of classes within the archive.
|
String |
getClasspathIndexFileLocation()
Returns the location of the classpath index file that should be written or
null if not index is required. |
String |
getLauncherClassName()
Returns the launcher class name for this layout.
|
String |
getLayersIndexFileLocation()
Returns the location of the layer index file that should be written or
null
if not index is required. |
String |
getLibraryLocation(String libraryName,
LibraryScope scope)
Returns the destination path for a given library.
|
String |
getRepackagedClassesLocation()
Returns the location to which classes should be moved.
|
boolean |
isExecutable()
Returns if loader classes should be included to make the archive executable.
|
public String getLauncherClassName()
Layout
getLauncherClassName
in interface Layout
public String getLibraryLocation(String libraryName, LibraryScope scope)
Layout
getLibraryLocation
in interface Layout
libraryName
- the name of the library (excluding any path)scope
- the scope of the librarynull
if the library should not be included.public String getClassesLocation()
Layout
getClassesLocation
in interface Layout
public String getRepackagedClassesLocation()
RepackagingLayout
getRepackagedClassesLocation
in interface RepackagingLayout
public String getClasspathIndexFileLocation()
RepackagingLayout
null
if not index is required. The result should include the filename and
is relative to the root of the jar.getClasspathIndexFileLocation
in interface RepackagingLayout
public String getLayersIndexFileLocation()
RepackagingLayout
null
if not index is required. The result should include the filename and is relative to
the root of the jar.getLayersIndexFileLocation
in interface RepackagingLayout
public boolean isExecutable()
Layout
isExecutable
in interface Layout