public class Library extends Object
Libraries
Constructor and Description |
---|
Library(File file,
LibraryScope scope)
Create a new
Library . |
Library(File file,
LibraryScope scope,
boolean unpackRequired)
Deprecated.
since 2.4.8 for removal in 2.6.0 in favor of
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean) |
Library(String name,
File file,
LibraryScope scope,
boolean unpackRequired)
Deprecated.
since 2.4.8 for removal in 2.6.0 in favor of
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean) |
Library(String name,
File file,
LibraryScope scope,
LibraryCoordinates coordinates,
boolean unpackRequired)
Deprecated.
since 2.4.8 for removal in 2.6.0 in favor of
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean) |
Library(String name,
File file,
LibraryScope scope,
LibraryCoordinates coordinates,
boolean unpackRequired,
boolean local)
Deprecated.
since 2.4.8 for removal in 2.6.0 in favor of
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean) |
Library(String name,
File file,
LibraryScope scope,
LibraryCoordinates coordinates,
boolean unpackRequired,
boolean local,
boolean included)
Create a new
Library . |
Modifier and Type | Method and Description |
---|---|
LibraryCoordinates |
getCoordinates()
Return the coordinates of the library.
|
File |
getFile()
Return the library file.
|
String |
getName()
Return the name of file as it should be written.
|
LibraryScope |
getScope()
Return the scope of the library.
|
boolean |
isIncluded()
Return if the library is included in the fat jar.
|
boolean |
isLocal()
Return if the library is local (part of the same build) to the application that is
being packaged.
|
boolean |
isUnpackRequired()
Return if the file cannot be used directly as a nested jar and needs to be
unpacked.
|
public Library(File file, LibraryScope scope)
Library
.file
- the source filescope
- the scope of the library@Deprecated public Library(File file, LibraryScope scope, boolean unpackRequired)
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean)
Library
.file
- the source filescope
- the scope of the libraryunpackRequired
- if the library needs to be unpacked before it can be used@Deprecated public Library(String name, File file, LibraryScope scope, boolean unpackRequired)
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean)
Library
.name
- the name of the library as it should be written or null
to use
the file namefile
- the source filescope
- the scope of the libraryunpackRequired
- if the library needs to be unpacked before it can be used@Deprecated public Library(String name, File file, LibraryScope scope, LibraryCoordinates coordinates, boolean unpackRequired)
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean)
Library
.name
- the name of the library as it should be written or null
to use
the file namefile
- the source filescope
- the scope of the librarycoordinates
- the library coordinates or null
unpackRequired
- if the library needs to be unpacked before it can be used@Deprecated public Library(String name, File file, LibraryScope scope, LibraryCoordinates coordinates, boolean unpackRequired, boolean local)
Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean)
Library
.name
- the name of the library as it should be written or null
to use
the file namefile
- the source filescope
- the scope of the librarycoordinates
- the library coordinates or null
unpackRequired
- if the library needs to be unpacked before it can be usedlocal
- if the library is local (part of the same build) to the application
that is being packagedpublic Library(String name, File file, LibraryScope scope, LibraryCoordinates coordinates, boolean unpackRequired, boolean local, boolean included)
Library
.name
- the name of the library as it should be written or null
to use
the file namefile
- the source filescope
- the scope of the librarycoordinates
- the library coordinates or null
unpackRequired
- if the library needs to be unpacked before it can be usedlocal
- if the library is local (part of the same build) to the application
that is being packagedincluded
- if the library is included in the fat jarpublic String getName()
public File getFile()
public LibraryScope getScope()
public LibraryCoordinates getCoordinates()
public boolean isUnpackRequired()
public boolean isLocal()
public boolean isIncluded()