public void onJar()

in winegrower-extension/winegrower-build/winegrower-build-common/src/main/java/org/apache/winegrower/extension/build/common/MetadataBuilder.java [55:70]


    public void onJar(final String jarName, final Manifest manifest) {
        if (autoFiltering && (manifest == null || !isOsgi(manifest.getMainAttributes()))) {
            return;
        }
        if (manifest != null) {
            try (final ByteArrayOutputStream manifestStream = new ByteArrayOutputStream()) {
                manifest.write(manifestStream);
                manifestStream.flush();
                manifests.put(jarName, new String(manifestStream.toByteArray(), StandardCharsets.UTF_8));
            } catch (final IOException e) {
                throw new IllegalStateException(e);
            }
        }
        this.currentJar = jarName;
        this.files = new ArrayList<>();
    }