scaladoc Ant 任务为多个源目录编写?
我希望在一个同时包含 scala 和 java 的项目中编译 scaladoc 和 javadoc 。该项目有多个源目录(每个目录可能有 scala 或 javadoc)。我尝试过:
<scaladoc destdir="doc">
<classpath refid="compile.classpath"/>
<src>
<fileset dir="src"/>
<fileset dir="tweetstream4j/src"/>
</src>
<include name="src/**/*.scala"/>
</scaladoc>
及其几种变体。对于上述变体,我得到:
BUILD FAILED
/blah/build.xml:119: /blah/src/com/foo/Blah.java is not a directory.
其中“Blah.java”是我的源代码树中的一个文件。
我查看了 scaladoc ant 任务文档 和 scaladoc 手册页。我正在使用 scala2.7.7final (因为这是 apt-get 在我的 Ubuntu 系统上安装的)。
关于如何从“src”和“tweetstream4j/src”中获取scaladoc和javadoc的建议?
I wish to compile scaladoc and javadoc in a project with both scala and java in it. The project has more than one source directory (each of which may have scala or javadoc). I tried:
<scaladoc destdir="doc">
<classpath refid="compile.classpath"/>
<src>
<fileset dir="src"/>
<fileset dir="tweetstream4j/src"/>
</src>
<include name="src/**/*.scala"/>
</scaladoc>
and several variants thereof. For the above variant I get:
BUILD FAILED
/blah/build.xml:119: /blah/src/com/foo/Blah.java is not a directory.
where "Blah.java" is a file in my source tree.
I've looked at the scaladoc ant task doc and the scaladoc man page. I'm using scala2.7.7final (because that's what apt-get puts on my Ubuntu system).
Suggestions of how to get scaladoc and javadoc out of "src" and "tweetstream4j/src"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题并遇到了这个。这些
元素似乎没有很好的文档记录,但我能够从网上找到的各种示例中整理出一些有用的东西:这将在所有 Java 和 Scala 的源目录中查找编写代码并为其构建一套文档。
I had the same question and came across this. Those
<src>
elements don't seem well documented but I was able to put together something that works from various examples I found on the web:That will look in both source directories for all Java and Scala code and build one set of documentation for it all.