43
43
class FileArgs (str , Enum ):
44
44
AB = 'AB'
45
45
CERTIFICATE = 'CERTIFICATE'
46
+ BOOT_JAR = 'BOOT_JAR'
46
47
DUMMY_SHARED_LIB = 'DUMMY_SHARED_LIB'
47
48
EXTRACT_ONLY = 'EXTRACT_ONLY'
48
49
MAKE_COPY_RULE = 'MAKE_COPY_RULE'
@@ -65,6 +66,7 @@ class FileArgs(str, Enum):
65
66
FILE_ARGS_TYPE_MAP = {
66
67
FileArgs .AB : True ,
67
68
FileArgs .CERTIFICATE : str ,
69
+ FileArgs .BOOT_JAR : True ,
68
70
FileArgs .DUMMY_SHARED_LIB : True ,
69
71
FileArgs .EXTRACT_ONLY : True ,
70
72
FileArgs .MAKE_COPY_RULE : True ,
@@ -482,6 +484,7 @@ def __init__(
482
484
# packages_files is a FileTree to help with performance while grouping
483
485
# multiple files of the same type together
484
486
self .package_files = FileTree ()
487
+ self .boot_jars = FileTree ()
485
488
self .dummy_shared_libs = FileTree ()
486
489
self .package_symlinks = SimpleFileList ()
487
490
self .copy_files = SimpleFileList ()
@@ -522,6 +525,9 @@ def __add_file(self, file: File, section: Optional[str]):
522
525
if FileArgs .SYMLINK in file .args :
523
526
self .package_symlinks .add (file )
524
527
528
+ if FileArgs .BOOT_JAR in file .args :
529
+ self .boot_jars .add (file )
530
+
525
531
if FileArgs .DUMMY_SHARED_LIB in file .args :
526
532
self .dummy_shared_libs .add (file )
527
533
return
0 commit comments