Package io.joshworks.snappy.maven.tools
Interface Layout
-
- All Known Implementing Classes:
Layouts.Expanded,Layouts.Jar,Layouts.Module,Layouts.None,Layouts.War
public interface LayoutStrategy interface used to determine the layout for a particular type of archive.- Author:
- Phillip Webb
- See Also:
Layouts
-
-
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
java.lang.String getLauncherClassName()
Returns the launcher class name for this layout.- Returns:
- the launcher class name
-
getLibraryDestination
java.lang.String getLibraryDestination(java.lang.String libraryName, LibraryScope scope)Returns the destination path for a given library.- 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
java.lang.String getClassesLocation()
Returns the location of classes within the archive.- Returns:
- the classes location
-
isExecutable
boolean isExecutable()
Returns if loader classes should be included to make the archive executable.- Returns:
- if the layout is executable
-
-