meson/unittests
Benjamin Gilbert 35e230e48c depfixer: silence fix_jar() and make it do something
fix_jar() tries to remove an existing Class-Path entry from the jar
manifest by postprocessing the manifest and passing it to `jar -um`.
However, `jar -um` can only add/replace manifest entries, not remove
them, and it also complains loudly when replacing an entry:

    Dec 13, 2022 7:11:19 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Manifest-Version.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.

Thus fix_jar() produces one such warning for each entry in the manifest
and accomplishes nothing else.

Use jar -uM instead.  This completely removes the manifest from the jar
and allows adding it back as a normal zip member, fixing fix_jar() and
avoiding the warnings.

Fixes: https://github.com/mesonbuild/meson/issues/10491
Fixes: c70a051e93 ("java: remove manifest classpath from installed jar")
2022-12-14 15:37:59 -05:00
..
allplatformstests.py Add warning_level=everything 2022-11-27 16:50:48 -05:00
baseplatformtests.py unittests: add and use get_meson_log_raw function 2022-11-22 22:53:07 -05:00
darwintests.py editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
datatests.py docs: Add documentation on pkgconfig.relocatable 2022-04-19 17:35:08 -04:00
failuretests.py Reword message in warning 2022-05-19 07:18:43 -04:00
helpers.py depfixer: silence fix_jar() and make it do something 2022-12-14 15:37:59 -05:00
internaltests.py Compilers: Keep ccache and exelist separated 2022-10-25 17:24:56 -04:00
linuxcrosstests.py Condense test directory names. 2022-03-29 02:12:02 +03:00
linuxliketests.py refactor pkg-config dependency to allow statically finding the program 2022-12-04 17:56:03 -05:00
machinefiletests.py depfixer: silence fix_jar() and make it do something 2022-12-14 15:37:59 -05:00
platformagnostictests.py unittests: add and use get_meson_log_raw function 2022-11-22 22:53:07 -05:00
pythontests.py Add regression test for Python dist. 2022-04-13 21:27:22 +03:00
rewritetests.py unittests: Fix warning about distutils deprecation 2022-01-30 02:13:42 +05:30
subprojectscommandtests.py wrap: Don't use --branch with shallow clones against HEAD 2022-12-07 13:29:04 -05:00
taptests.py mtest: warn on invalid TAP output 2022-12-05 15:46:46 -05:00
windowstests.py compilers: don't use instance checks to determine properties 2022-09-19 15:18:59 -04:00