开发者

How to generate JavaDoc using buildr?

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 windowtitle开发者_运维知识库Abandon ......


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜