Hi, yes this is possible. just put the taget name(s) you want as command line parameters e.g.
C:\Projects>nant clean_common_dist will only cleanup C:\Projects>nant clean_common_dist dist will do same as your "all" You might separate your tasks into several targets than you can build whatever you want. One usage tip: don't use commas in depends="" so you can just copy the depends onto your command line and remove the ones you don't want to have. Your target "all" could be written also as: <target name="all" depends="clean_common_dist dist" /> So far Dominik Am 05.08.2011 10:33, schrieb Paul Collins: > Hi > > I want to execute a specific build package one is everything and the > other one is a custom one, currently am creating a build package for > everything... > > target name="all" depends="clean_common_dist, dist" /> > > <target name="dist" depends="_distWebSite" > > > <mkdir dir="${gbewebsite.dist.dir}\bin"/> > > <copy todir="${gbewebsite.dist.dir}"> > > <fileset basedir="GBE.Web.UI"> > > <include name="*.key" /> > > </fileset> > > </copy> > > And so forth. > > But I want to be able to execute a different target which would be > specified by whoever is running the build from the command line, is this > possible? The default at present is to build all which is a package of > hundreds of files I just want to create a smaller package than that. > -- The answer to the great question of life, the universe and everything is 42 (Douglas Adams) ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users