我已经在StackOverflow上阅读了一些关于如何在从Ant创建asdoc时排除依赖关系的问题,但似乎我可能做不到。
这里(http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_9.html)它只是将-exclude-dependencies参数设置为true或false,但是我收到错误。下面是Ant输出:
Generate ASDoc:
[echo] --- Generate ASDoc ---
[exec] Error: no default arguments are expected
[exec] Use 'asdoc -help' for information about using the command line.
[exec] Adobe ASDoc
[exec] Version 4.6.0 build 23201
[exec] Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
[exec] Result: 1
这是Ant任务:
<target name="Generate ASDoc">
<echo>--- Generate ASDoc ---</echo>
<!-- delete all files in the doc dir -->
<delete
includeemptydirs="true"
>
<fileset
dir="${DOCS_TARGET_DIRECTORY}"
includes="**/*"
/>
</delete>
<!-- create docs -->
<exec executable="${ASDOC_DIRECTORY}" >
<arg line="-doc-sources '${SOURCE_DIRECTORY}' "/>
<arg line="-exclude-dependencies true"/>
<arg line="-output '${DOCS_TARGET_DIRECTORY}' "/>
<arg line="-main-title 'Title' "/>
<arg line="-window-title 'Title' "/>
</exec>
<!-- compress docs -->
<antcall target="Compress ASDoc" description="Compress asdocs" />
</target>
我想知道我是否错了。有任何想法吗?谢谢!
答案 0 :(得分:0)
来自Adobe的Using the ASDoc tool
注意:您不能将exclude-dependencies与doc-sources选项指定的输入类一起使用。