如何使用buildr生成JavaDoc?

发布于 2024-10-01 12:19:33 字数 329 浏览 2 评论 0原文

我想使用 buildr 自动生成 JavaDoc。我尝试使用主页上的官方指南 PDF 中建议的方法。然而,这并没有奏效。

define "SharedState_ebBP", :layout=>eclipse_layout do 
project.version = VERSION_NUMBER
project.group = GROUP 

文档:窗口标题=> “放弃所有希望,进入这里的人”,:私人 =>真的 end

错误信息如下: RuntimeError: 不知道如何从 windowtitleAbandon 生成文档......

I want to automatically generate the JavaDoc using buildr. I tried using the approach suggested in the official Guide PDF from the Homepage. However, it did not work.

define "SharedState_ebBP", :layout=>eclipse_layout do 
project.version = VERSION_NUMBER
project.group = GROUP 

doc :windowtitle => "Abandon All Hope, Ye Who Enter Here", :private => true
end

The error message is as follows:
RuntimeError: Don't know how to generate documentation from windowtitleAbandon ......

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

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

发布评论

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

评论(1

爺獨霸怡葒院 2024-10-08 12:19:34

设置窗口标题的正确语法是

doc.using(:windowtitle => "Abandon All Hope", :private => true)

and 与 end 单独占一行。然而,这本身并不会导致 doc 任务自动运行。

要在运行 buildr 时自动构建 JavaDoc,只需添加到构建文件的末尾:

task :default => [:build, :doc]

这将 default 任务重新定义为首先 build,然后 <代码>文档。

The correct syntax for setting the window title is

doc.using(:windowtitle => "Abandon All Hope", :private => true)

and with end on a line by itself. However that in and of itself does not cause the doc task to get run automatically.

To automatically build the JavaDoc when you run buildr simply add to the end of your buildfile:

task :default => [:build, :doc]

This redefines the default task to first build and then doc.

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