Hi again,
 
Some time ago I point to this attribute description in docs:
includes comma-separated list of patterns of files that must be included; all files are included when omitted. No
excludes comma-separated list of patterns of files that must be excluded; no files (except default excludes) are excluded when omitted. No
 
I like this functionality, but it is currently _not_ supported. Implement that comma-separared list in quite easy, but it is desired?
 
 
If we say not to implement this feature, how to do something like this? :  (i currently use it)
 
<property name="docassemblies" value=""/>
<property name="nant.onfailure" value="docs-failed"/>
<delete dir="${docbuild.dir}" failonerror="false"/>
<foreach item="File" property="filename">
    <in>
     <items basedir="${output.dir}">
      <includes name="*.xml"/>
     </items>
    </in>
    <do>
     <regex pattern="^(?'filename'.*)\.(?'extension'\w+)$" input="${filename}"/>
    
     <property name="docassemblies" value="${docassemblies},${filename}.dll"/>
    </do>
</foreach>
<regex pattern="^,(?'docassemblies'.*)$" input="${docassemblies}"/>
 
<ndoc failonerror="true">
    <assemblies basedir="${output.dir}">
     <includes name="${docassemblies}"/>
    </assemblies>
...
 
first part assemble comma-separated list of assemblies, which have corresponding .xml and I use that list in includes of ndoc.
 
 
Thanks for help in advance,
Martin

Reply via email to