Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 apache ant 为我的项目生成 javadoc。我的一个包中有许多类,我只想展示一个。我该怎么做呢?这是我当前的代码。
<javadoc sourcepath="jig-engine/src" destdir="${target.path}/docs/javadoc/" packagenames="jig.engine.util.Vector2D" > </javadoc>
(为清楚起见进行了简化)
使用 sourcefiles 参数而不是 sourcepath:
<javadoc sourcefiles="jig-engine/src/path/to/your/file.java" destdir="${target.path}/docs/javadoc/"> </javadoc>