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



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r _______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to