1 Star 1 Fork 3

hgw999/JavaPackager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
manifest.md 907 Bytes
一键复制 编辑 原始数据 按行查看 历史

manifest property

manifest property allows adding additional manifest entries and sections.

Maven

<manifest>
    <additionalEntries>
    	<Created-By>Peter</Created-By>
    </additionalEntries>
    <sections>
        <section>
            <name>foo/</name>
            <entries>
            	<Implementation-Version>foo1</Implementation-Version>
            </entries>
        </section>
    </sections>
</manifest>

Gradle

manifest {
    additionalEntries = [
    	'Created-By': 'Peter'
    ]
    sections = [
        new io.github.fvarrui.javapackager.model.ManifestSection ([
            name: "foo/",
            entries: [
            	'Implementation-Version': 'foo1'
            ]
        ])
    ]
}

Result

Both produce the following MANIFEST.MF file:

Manifest-Version: 1.0
Created-By: Peter

Name: foo/
Implementation-Version: foo1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hgw999/JavaPackager.git
git@gitee.com:hgw999/JavaPackager.git
hgw999
JavaPackager
JavaPackager
master

搜索帮助