4343class FileArgs (str , Enum ):
4444 AB = 'AB'
4545 CERTIFICATE = 'CERTIFICATE'
46+ BOOT_JAR = 'BOOT_JAR'
4647 DUMMY_SHARED_LIB = 'DUMMY_SHARED_LIB'
4748 EXTRACT_ONLY = 'EXTRACT_ONLY'
4849 MAKE_COPY_RULE = 'MAKE_COPY_RULE'
@@ -65,6 +66,7 @@ class FileArgs(str, Enum):
6566FILE_ARGS_TYPE_MAP = {
6667 FileArgs .AB : True ,
6768 FileArgs .CERTIFICATE : str ,
69+ FileArgs .BOOT_JAR : True ,
6870 FileArgs .DUMMY_SHARED_LIB : True ,
6971 FileArgs .EXTRACT_ONLY : True ,
7072 FileArgs .MAKE_COPY_RULE : True ,
@@ -482,6 +484,7 @@ def __init__(
482484 # packages_files is a FileTree to help with performance while grouping
483485 # multiple files of the same type together
484486 self .package_files = FileTree ()
487+ self .boot_jars = FileTree ()
485488 self .dummy_shared_libs = FileTree ()
486489 self .package_symlinks = SimpleFileList ()
487490 self .copy_files = SimpleFileList ()
@@ -522,6 +525,9 @@ def __add_file(self, file: File, section: Optional[str]):
522525 if FileArgs .SYMLINK in file .args :
523526 self .package_symlinks .add (file )
524527
528+ if FileArgs .BOOT_JAR in file .args :
529+ self .boot_jars .add (file )
530+
525531 if FileArgs .DUMMY_SHARED_LIB in file .args :
526532 self .dummy_shared_libs .add (file )
527533 return
0 commit comments