1

我想在我的源项目中排除几个文件 (*_include.as),以生成 ASDOC:

<target name="build-asdoc" depends="manifest">

    <delete dir="${asdoc.dir}" />
    <mkdir dir="${asdoc.dir}" />        

    <exec executable="${FLEX_HOME}/bin/asdoc.exe" failonerror="false">
                <arg line="-doc-sources '${src.dir}'" />
                <arg line="-doc-sources '${lib.dir}'" />
                <arg line="-external-library-path '${ivy.cache.dir}/org.puremvc.as3/singlecore/swcs'" />
                <arg line="-external-library-path '${ivy.cache.dir}/com.keepcore.calendar/KCCalendar/swcs'" />
                <arg line="-external-library-path '${ivy.cache.dir}/org.as3commons/as3commons-lang/swcs'" />                        
                <arg line="-main-title '${asdoc.mainTitle}'" />
                <arg line="-window-title '${asdoc.windowTitle}'" />
                <arg line="-output '${asdoc.dir}'" />
                <arg line="-footer '${asdoc.footer}'" />
                <arg line="-exclude-sources ?????" />
            </exec>

</target>

非常感谢,

问候,

安东尼

4

1 回答 1

0

使用文件集和路径转换:

<fileset dir="${src.dir}" id="src.files">
      <include name="**/*.cpp"/>
    </fileset>

<pathconvert pathsep="," property="excluded.src.files" refid="src.files"/>

现在属性${excluded.src.files}将使您的文件用空格分隔,您可以根据程序输入参数添加自己的分隔符等。然后你只需将它与你的 -exlucde-sources arg 一起传递给你的程序,就是这样。

于 2011-10-29T16:10:31.170 回答