用于发布的自动 @since javadoc 标记

发布于 2024-09-13 05:36:38 字数 285 浏览 2 评论 0原文

当我想要发布版本时,是否有一个工具可以自动将 @since 标签添加到所有元素?

假设我有很多方法,并且我的基本系统现在正在运行,所以我决定将其发布为 0.1.0 版本

。我现在想要的是一个工具,可以搜索每个缺失的 @since 标签并相应地添加它。

我正在使用 Eclipse,并且找到了 JAutodoc,但据我所知,它只允许搜索丢失的标签,我必须手动添加它们。

编辑: 有人可能会感兴趣的一种解决方法:从一开始就使用带有正确的since标签的Eclipse模板,并在每次发布后更改模板。

Is there a tool to automatically add the @since tag to all elements when I want to have a release version?

So let's say I have a bunch of methods and my base system is working now, so I decide to release it as version 0.1.0

What I want now is a tool that searches for every missing @since tag and adds it accordingly.

I'm using Eclipse and I have found JAutodoc, but as far as I can see it only allows to search for the missing tags and I'd have to add them manually.

EDIT:
One workaround that might be interesting for someone: From the beginning on use an Eclipse Template with the right since tag and after each release change the template.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回忆那么伤 2024-09-20 05:36:38

这听起来像是您的构建工具应该为您提供的东西。如果您使用 Maven,您应该查看 javadoc:fix。看起来它完全符合您的要求:

http:// maven.apache.org/plugins/maven-javadoc-plugin/fix-mojo.html

This sounds like something your build tool should provide you with. If you are using maven you should have a look at javadoc:fix. It looks like it does exactly what you want:

http://maven.apache.org/plugins/maven-javadoc-plugin/fix-mojo.html

赠佳期 2024-09-20 05:36:38

我可以补充一下我在 27 年前学到的一个教训:不要试图让你的版本控制号与你的产品发布号保持一致。那就是疯狂所在。

Can I just add a lesson I learned about 27 years ago: don't try to make your version control numbers align with your product release numbers. That way madness lies.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文