Package io.joshworks.snappy.maven.tools
Class Library
- java.lang.Object
-
- io.joshworks.snappy.maven.tools.Library
-
public class Library extends java.lang.ObjectEncapsulates information about a single library that may be packed into the archive.- Since:
- 1.1.2
- Author:
- Phillip Webb
- See Also:
Libraries
-
-
Constructor Summary
Constructors Constructor Description Library(java.io.File file, LibraryScope scope)Create a newLibrary.Library(java.io.File file, LibraryScope scope, boolean unpackRequired)Create a newLibrary.Library(java.lang.String name, java.io.File file, LibraryScope scope, boolean unpackRequired)Create a newLibrary.
-
Method Summary
Modifier and Type Method Description java.io.FilegetFile()Return the library file.java.lang.StringgetName()Return the name of file as it should be written.LibraryScopegetScope()Return the scope of the library.booleanisUnpackRequired()Return if the file cannot be used directly as a nested jar and needs to be unpacked.
-
-
-
Constructor Detail
-
Library
public Library(java.io.File file, LibraryScope scope)Create a newLibrary.- Parameters:
file- the source filescope- the scope of the library
-
Library
public Library(java.io.File file, LibraryScope scope, boolean unpackRequired)Create a newLibrary.- Parameters:
file- the source filescope- the scope of the libraryunpackRequired- if the library needs to be unpacked before it can be used
-
Library
public Library(java.lang.String name, java.io.File file, LibraryScope scope, boolean unpackRequired)Create a newLibrary.- Parameters:
name- the name of the library as it should be written ornullto use the file namefile- the source filescope- the scope of the libraryunpackRequired- if the library needs to be unpacked before it can be used
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the name of file as it should be written.- Returns:
- then name.
-
getFile
public java.io.File getFile()
Return the library file.- Returns:
- the file
-
getScope
public LibraryScope getScope()
Return the scope of the library.- Returns:
- the scope
-
isUnpackRequired
public boolean isUnpackRequired()
Return if the file cannot be used directly as a nested jar and needs to be unpacked.- Returns:
- if unpack is required
-
-