English 中文(简体)
带文字:如何排除ASDOC发动机的若干档案
原标题:ANT script : how to exclude several files with ASDOC engine

我想将我的来源项目中的若干档案(*_include.as)排除在外,以便产生一个SDOC:

<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>

非常感谢你,

关于

Anthony

问题回答

Use a fileset and a path convert :

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

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

既然财产<代码>(不适用),你们的档案将用一个空间分开,你可以添加自己的分离者等。 根据您的方案投入论点。 之后,你才以你的---经验来源对你的方案寄予厚望。





相关问题
i want to continously run my java threads

I am running my java application where i have used threads... i am running this application using ant command on the terminal.. But when i close my terminal or press ctrl+c,then java program which was ...

Subant targets instead of ant

I m having a problem with subant and have no ideas any more. Can anyone help? Using Ant to replace some strings for other (i.e Productname and Version for "Foo" and "1.2") I used ...

java ant buildfile for project with dependencies

I am new to ant, but am trying to create an ant script that builds my current proeject with another project as a dependency. I have the ant script building my current project, but am unsure how to add ...

Building Apache Hive - impossible to resolve dependencies

I am trying out the Apache Hive as per http://wiki.apache.org/hadoop/Hive/GettingStarted and am getting this error from Ivy: Downloaded file size doesn t match expected Content Length for http://...

Ivy, ant and start scripts

I have a project that uses ant to build and ivy for dependencies. I would like to generate the start scripts for my project, with the classpath, based on the dependencies configured in Ivy, ...

热门标签