附加开放式Java Jar清单属性
在Java Jar清单中添加add-Opens
属性的正确方法是什么?我已经添加了属性,并且在subest.mf文件中看起来像这样:
Add-Opens: java.base/sun.security.ssl
doc: https://openjdk.java.net/jeps/261#packaging:modular-jar-files 提到
a
< module>/< package>
对附加属性的值配对的含义与命令行选项- add-odd-open-opens< lt;模块>/< package> = all-Unnamed“
。
通过命令行提供的参数如预期的那样起作用,将其添加为清单中的属性。
这是添加add-opens < /代码>属性?
What's the correct way to add Add-Opens
attribute in java jar Manifest? I have added the attribute and it appears like this in MANIFEST.MF file:
Add-Opens: java.base/sun.security.ssl
The doc: https://openjdk.java.net/jeps/261#Packaging:-Modular-JAR-files mentions
A
<module>/<package>
pair in the value of an Add-Opens attribute has the same meaning as the command-line option--add-opens <module>/<package>=ALL-UNNAMED"
.
Providing argument via command line works as expected, however, adding it as an attribute in manifest doesn't.
Is this the correct way to add Add-Opens
attribute?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论