Gary Feldman a écrit :
This looks like a good idea, but could be difficult to do generally across all tasks.

In the meantime, a simple approach that works today is to duplicate the task invocation with if/unless attributes, and use a property to indicate which to do:
In the setup targets:
<property name="generateDocs" value="true" /> <!-- or false -->


 In the build targets:
   <csc target="exe" output="..." doc="..." if="${generateDocs}" />
   <csc target="exe" output="..."           unless="${generateDocs}" />

It's annoyingly verbose, but I use this idiom frequently.

Gary


Hello,
can this really work? You have to embed the source files between
<csc></csc>:

<csc target="exe" output="${dir}">
        <sources>
                <include name="AssemblyInfo.cs" />
                <include name="code/*.cs" />
        </sources>
</csc>

I don't see how I can use <csc target="exe" output="..." doc="..."
if="${generateDocs}" />.

Thank you

Julien





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