DocBlox 配置:找不到给定的默认模板或不可读
我已经使用 PEAR 在 Ubuntu 11.10 上安装了最新的 0.18.1 DocBlox。如果我在命令行上指定所有内容,一切似乎都工作正常。但是,单独使用 docblox 将无法在当前目录中找到 docblox.xml。指定 doxblox -c (或 --config)./docblox.xml 也不起作用。我已验证权限并且该文件存在。
我有一个目录Testing,其中包含一些用于测试的简单文件。
/home/Testing$ docblox --config ./docblox.xml
DocBlox version 0.18.1
ERROR: The given template default could not be found or is not readable
/home/Testing$ ls -l
total 20
-rw-rw-rw- 1 dev dev 992 2012-01-17 12:03 docblox.xml
-rw-rw-rw- 1 dev dev 107 2012-01-17 11:59 index.php
-rw-rw-rw- 1 dev dev 769 2012-01-17 12:01 SOME_CLASS.class
-rw-rw-rw- 1 dev dev 1335 2012-01-17 12:02 SOME_CLASS.class.test
I have installed the latest 0.18.1 DocBlox on Ubuntu 11.10 using PEAR. Everything seems to work fine if I specify everything on the command line. However, using the docblox alone will not find the docblox.xml in the current directory. Specifying the doxblox -c (or --config) ./docblox.xml does not work either. I have verified permissions and that the file exists.
I have a directory Testing with some simple files for testing.
/home/Testing$ docblox --config ./docblox.xml
DocBlox version 0.18.1
ERROR: The given template default could not be found or is not readable
/home/Testing$ ls -l
total 20
-rw-rw-rw- 1 dev dev 992 2012-01-17 12:03 docblox.xml
-rw-rw-rw- 1 dev dev 107 2012-01-17 11:59 index.php
-rw-rw-rw- 1 dev dev 769 2012-01-17 12:01 SOME_CLASS.class
-rw-rw-rw- 1 dev dev 1335 2012-01-17 12:02 SOME_CLASS.class.test
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
default
模板在版本 0.18.0 之前一直是事实上的模板,并在版本 0.18 中重命名为new_black
。也许您直接在自己的配置中提到default
模板?尝试安装
new_black
模板,并在配置中省略模板名称或定义new_black
。The
default
template was until version 0.18.0 the de-facto template and has been renamed tonew_black
in version 0.18. Perhaps you directly mention thedefault
template in your own configuration?try to install the
new_black
template and either omit the template name in your configuration or definenew_black
.您可能必须安装主题。在维护者将主题与核心分离后,我必须在第一个版本中自己做这件事
You propably must install the theme. I had to do it myself in the first release after the maintainer separated the themes from the core
删除模板部分后,这纠正了我的问题,我可以生成报告和类图。新的 docblox.xml 如下,供需要的人使用。
After removing the template section, this corrected my problems and I can generate the reports and class graph. The new docblox.xml is below for anyone who needs it.