类 Library


  • public class Library
    extends Object
    Encapsulates information about a single library that may be packed into the archive.
    从以下版本开始:
    1.1.2
    另请参阅:
    Libraries
    • 构造器详细资料

      • Library

        public Library​(File file,
                       LibraryScope scope,
                       boolean unpackRequired)
        Create a new Library.
        参数:
        file - the source file
        scope - the scope of the library
        unpackRequired - if the library needs to be unpacked before it can be used
      • Library

        public Library​(String name,
                       File file,
                       LibraryScope scope,
                       boolean unpackRequired)
        Create a new Library.
        参数:
        name - the name of the library as it should be written or null to use the file name
        file - the source file
        scope - the scope of the library
        unpackRequired - if the library needs to be unpacked before it can be used
    • 方法详细资料

      • getName

        public String getName()
        Return the name of file as it should be written.
        返回:
        the name
      • getFile

        public File getFile()
        Return the library file.
        返回:
        the file
      • isUnpackRequired

        public boolean isUnpackRequired()
        Return if the file cannot be used directly as a nested jar and needs to be unpacked.
        返回:
        if unpack is required