> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Stefan > Bodewig > Sent: Friday, 03 December, 2004 14:10 > To: [EMAIL PROTECTED] > Cc: Ian MacLean; 'Troy Laurin'; 'J. Christopher Six'; Gert Driesen > Subject: [Nant-users] Re: Ant vs. NAnt conditional execution of targets [snip] > > Do you have a real world use-case for that? > > I've never encountered that need, but frequently used if/unless the > way it is. But my build needs may be different from yours.
1. Do not include administrator functionality unless the property 'include.amin' has been set <target name="admin-ui" depends="private-encryption" if="${bool::parse(include.amin)} > .... </target> Disturbing to find the "LicenceSigner.dll" still ending up in your end-user distribution. 2. Run time consuming tests only if the property 'test.patient' is set to 'true'. A natural first attemtp is: <target name="tests" depends="minimal-tests, time-consuming-tests"/> <target name="time-consuming-tests" depends="realDb-tests, integration-tests, performance-tests" if="${bool::parse(test.patient)}" /> Sadly, this will still tax you patience. Rutger Dijkstra ------------------------------------------------------- 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