Interesting... :) Thanks for the info. (see comments inline) > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nant-developers- > [EMAIL PROTECTED]] On Behalf Of Brad Wilson > Sent: Tuesday, April 23, 2002 3:01 PM > To: NAnt Developers > Subject: Re: [nant-dev] no command line arg target behavior > > Scott Hernandez wrote: > > > I suggest that the list of valid targets is given. So you would get > > something like this for a bad target of "d". > > I like having a default target the way it is.
I'm not suggesting changing the default target behavior. I too like how it works. What I'm suggesting is if no default target is defined, and no target is supplied as a command line arg, then the projecthelp should be displayed. > > > If this sounds like a good idea, I'd also want to add a description to > > the target so they have a little more info. > > Descriptions are already available, via the "description" attribute on > tasks. To get a list of valid targets and their descriptions, type > "nant -projecthelp". For example: umm.... actually.... Neither Task, nor Target, define a "description" attribute. That really wouldn't make much sense for Task, would it? Why would you want to give a description for an echo task instance, or a TStamp? Instead there is a xslt file(xslt/projecthelp.xslt) defined to generate the help you are talking about. In the xslt file there is xpath query that digs up the description from targets and displays it. This xslt doesn't use the classes at all :( > F:\Source\WebServer >> nant -projecthelp > Default Target: > > test Run Unit Tests with NUnit > > Main Targets: > > all Executes: 'clean build test doc' > build Builds the web server > clean Cleans out all built files > dist Makes redist ZIP (forces 'clean release build > doc') > doc Builds the web server documentation > release Add this to build release builds (debug are > default) > run Runs the web server > test Run Unit Tests with NUnit > > Brad > -- > Read my web log at http://www.quality.nu/dotnetguy/ _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
