Hi Thibaut,

This is now fixed in cvs.

Gert 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Thibaut Barrère
> Sent: woensdag 20 oktober 2004 11:33
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] NDoc task parameters evaluated only once ?
> 
> 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
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to