gpt4 book ai didi

java - ant jar的主类

转载 作者:搜寻专家 更新时间:2023-10-30 19:42:06 25 4
gpt4 key购买 nike

如何在 ant 中设置我的 jar 的 Main-Class 属性?

最佳答案

创建 list :

<manifest file="build/MANIFEST.MF">
<attribute name="Main-Class"
value="foo.FooMain" />
</manifest>
<jar destfile="build/foo.jar"
manifest="build/MANIFEST.MF">
<fileset dir="build/classes" />
</jar>

关于java - ant jar的主类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2165311/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com