2012-02-06 58 views
1

我已經閱讀了關於如何從Ant創建asdoc時排除依賴關係的StackOverflow上的一些問題,但似乎我可能無法正確理解。如何從ASDoc中正確排除依賴關係?

這裏(http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_9.html)它說只是將-exclude-dependencies參數設置爲true或false,但是我得到一個錯誤。下面是螞蟻輸出:

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> 

我不知道是否可以使用它錯了。有任何想法嗎?謝謝!

回答