@@ -144,6 +144,24 @@ genrule(
144144 tools = ["//third_party/ijar" ],
145145)
146146
147+ genrule (
148+ name = "jar_with_manifest_sections_nostrip" ,
149+ testonly = 1 ,
150+ srcs = [":jar_with_manifest_sections" ],
151+ outs = ["jar-with-manifest-sections-nostrip.jar" ],
152+ cmd = "$(location //third_party/ijar) --target_label //foo:foo --nostrip_jar $< $@" ,
153+ tools = ["//third_party/ijar" ],
154+ )
155+
156+ genrule (
157+ name = "jar_with_target_label_and_manifest_sections_nostrip" ,
158+ testonly = 1 ,
159+ srcs = [":jar_with_target_label_and_manifest_sections" ],
160+ outs = ["jar-with-target-label-and-manifest-sections-nostrip.jar" ],
161+ cmd = "$(location //third_party/ijar) --target_label //foo:foo --nostrip_jar $< $@" ,
162+ tools = ["//third_party/ijar" ],
163+ )
164+
147165genrule (
148166 name = "jar_without_manifest_nostrip_idempotence" ,
149167 srcs = ["jar-without-manifest-nostrip.jar" ],
@@ -292,6 +310,30 @@ genrule(
292310 tools = ["//third_party/ijar" ],
293311)
294312
313+ java_binary (
314+ name = "GenJarWithManifestSections" ,
315+ testonly = 1 ,
316+ srcs = ["GenJarWithManifestSections.java" ],
317+ main_class = "GenJarWithManifestSections" ,
318+ deps = ["//third_party:guava" ],
319+ )
320+
321+ genrule (
322+ name = "jar_with_manifest_sections" ,
323+ testonly = 1 ,
324+ outs = ["jar-with-manifest-sections.jar" ],
325+ cmd = "$(location :GenJarWithManifestSections) $@" ,
326+ tools = [":GenJarWithManifestSections" ],
327+ )
328+
329+ genrule (
330+ name = "jar_with_target_label_and_manifest_sections" ,
331+ testonly = 1 ,
332+ outs = ["jar-with-target-label-and-manifest-sections.jar" ],
333+ cmd = "$(location :GenJarWithManifestSections) $@ //not:this" ,
334+ tools = [":GenJarWithManifestSections" ],
335+ )
336+
295337java_test (
296338 name = "IjarTests" ,
297339 size = "small" ,
@@ -305,6 +347,7 @@ java_test(
305347 "UseRestrictedAnnotation.java" ,
306348 "jar-with-manifest.jar" ,
307349 "jar-with-manifest-and-target-label.jar" ,
350+ "jar-with-manifest-sections.jar" ,
308351 "jar-without-manifest.jar" ,
309352 "package-info.java" ,
310353 ":empty_with_target_label" ,
@@ -314,6 +357,8 @@ java_test(
314357 ":interface_ijar_testlib_with_target_label" ,
315358 ":jar_with_manifest_and_target_label_nostrip" ,
316359 ":jar_with_manifest_nostrip" ,
360+ ":jar_with_manifest_sections_nostrip" ,
361+ ":jar_with_target_label_and_manifest_sections_nostrip" ,
317362 ":jar_without_manifest_nostrip" ,
318363 ":jar_without_manifest_nostrip_idempotence" ,
319364 ":kotlin_module-interface.jar" ,
0 commit comments