Hi Bryan,

If you want to mimic the behavior of VS.NET, I'd recommend using the
<solution> task.

I'm not 100% sure that a missing source file will trigger a build file right
now (I'll check this tomorrow), but if not then this is something that can
(and will) be changed very quickly.

However, the <solution> task in NAnt 0.84 is rather buggy, so I'd recommand
using NAnt 0.85 RC1 (or a recent nightly build).

Hope this helps,

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Bryan White
> Sent: zondag 5 december 2004 22:19
> To: NAnt User Group
> Cc: Xander van der Merwe; Geoff Bonallack
> Subject: [Nant-users] How to get task csc to fail if source 
> file missing, perhaps using failonempty
> 
> I'm using NAnt 0.84. I have the problem that if any source 
> file is missing,
> the program still conpiles. The source is retrieved from a source
> repository, and I want it to fail (just like VS does) if a 
> team member has
> forgotten to add a source file.
> 
> I have tried using failonempty="true" in multiple places 
> without success
> e.g. (simplified)
> 
>   <target name="SoftTech.Saturn.ShowerModel" depends="setup">
>     <csc target="library" output="${output}" debug="${debug}"
> define="${define}" doc="${doc}" warninglevel="${warninglevel}"
> failonempty="true" >
>       <arg value="${unsafe}" />
>       <arg value="${checked}" />
>       <sources  failonempty="true" >
>         <includes 
> name="SoftTech.Saturn.ShowerModel\Dimensions\module1.cs"
> failonempty="true" />
>         <includes 
> name="SoftTech.Saturn.ShowerModel\Dimensions\module2.cs"
> failonempty="true" />
>       </sources>
>       <references>
>         <includes
> name="D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" />
>         <includes 
> name="${build.dir}\SoftTech.Saturn.BusinessTier.dll" />
>       </references>
>     </csc>
>   </target>
> 
> What do I need to do to:
> 
> A) get build to fail if any source module is missing?
> 
> B) get slingshot to insert this parameter?
> The build comes from Slingshot parsing the .sln file.
> Probably a NantContrib Q, but if anyone here knows .. ;-)
> 
> TIA
> 
> Bryan White
> "Brewmanz"
> 
> 
> 
> 
> -------------------------------------------------------
> 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://productguide.itmanagersjournal.com/
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> 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://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to