Package io.joshworks.snappy.maven.tools
Class Layouts.Jar
- java.lang.Object
-
- io.joshworks.snappy.maven.tools.Layouts.Jar
-
- All Implemented Interfaces:
Layout
- Direct Known Subclasses:
Layouts.Expanded,Layouts.None
- Enclosing class:
- Layouts
public static class Layouts.Jar extends java.lang.Object implements Layout
Executable JAR layout.
-
-
Constructor Summary
Constructors Constructor Description Jar()
-
Method Summary
Modifier and Type Method Description java.lang.StringgetClassesLocation()Returns the location of classes within the archive.java.lang.StringgetLauncherClassName()Returns the launcher class name for this layout.java.lang.StringgetLibraryDestination(java.lang.String libraryName, LibraryScope scope)Returns the destination path for a given library.booleanisExecutable()Returns if loader classes should be included to make the archive executable.
-
-
-
Method Detail
-
getLauncherClassName
public java.lang.String getLauncherClassName()
Description copied from interface:LayoutReturns the launcher class name for this layout.- Specified by:
getLauncherClassNamein interfaceLayout- Returns:
- the launcher class name
-
getLibraryDestination
public java.lang.String getLibraryDestination(java.lang.String libraryName, LibraryScope scope)Description copied from interface:LayoutReturns the destination path for a given library.- Specified by:
getLibraryDestinationin interfaceLayout- Parameters:
libraryName- the name of the library (excluding any path)scope- the scope of the library- Returns:
- the destination relative to the root of the archive (should end with '/')
or
nullif the library should not be included.
-
getClassesLocation
public java.lang.String getClassesLocation()
Description copied from interface:LayoutReturns the location of classes within the archive.- Specified by:
getClassesLocationin interfaceLayout- Returns:
- the classes 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
-
-