Things to write today. I'm using a foreach over a fileset of projects to generate ndoc for each of these projects.
I override a property inside the loop (as a temporary variable). I'm displaying it just after to check if it was properly set and it's working fine But when I pass this property to the ndoc task, it's only evaluated once, for the first item in the foreach, then kept constant (i've checked that running in debug mode and looking at the .tmp files generated). I suspect that the ndoc sub nodes are evaluated once, the first time they are met. I can work around this (for instance, try to build a unique fileset and pass it as a ref in the assemblies node), but I won't get the same result (as I need one doc file per project, not a whole doc file for all the projects). Is it a bug ? Thibaut <foreach item="File" property="filename"> <in> <items refid="projects.csharp"/> </in> <do> <if test="${utils::must-document-project(filename)}"> <echo message="Project ${filename} has documentation enabled."/> <property name="assemblyName" value="${utils::get-assembly-filename(filename,'Release')}"/> <property name="outputDir" value="${path::get-directory-name(filename)}\${docSourceFolder}"/> <echo message="Diagnostic : assemblyName=${assemblyName}, outputDir=${outputDir}"/> <ndoc failonerror="true" verbose="true"> <assemblies> <include name="${assemblyName}" /> </assemblies> <documenters> <documenter name="MSDN"> <property name="OutputDirectory" value="${outputDir}" /> <property name="HtmlHelpName" value="${path::get-file-name-without-extension(assemblyName)}" /> .... </ndoc> </if> </do> </foreach> ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users