Raj, If you want to use the <depends> task, you need to download and install/load NAntContrib. However, most people use the depends attribute on the target element to define dependencies.
The <depends> task is useful when you want to dynamically define the dependencies. Gert -----Original Message----- From: ptr2009 [mailto:ptrajku...@gmail.com] Sent: dinsdag 10 februari 2009 19:56 To: nant-users@lists.sourceforge.net Subject: [NAnt-users] correct usage of depends attribute hey all I have a target that depends on numerous other targets. On windows this nant file works with version 0.86 beta. On MAC the build fails ( same version of nant) saying depends is unknown task. Is this project file legal ? Can "depends" be a child xml element of a target or always need to be comma separated attribute ? How is everyone dealing with lot of comma separated values particularly when the target names are big strings ? -Raj <?xml version="1.0"?> <project basedir="." default="build" name="TestFunc"> <target name="clean"> <echo message="cleaning"/> </target> <target name="build"> <depends on="clean"/> <echo message="build"/> </target> </project> -- View this message in context: http://www.nabble.com/correct-usage-of-depends-attribute-tp21939493p21939493 .html Sent from the NAnt - Users mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.15/1923 - Release Date: 1/29/2009 7:13 AM ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users