Re: [Nant-users] Including Nant build files

2005-08-17 Thread Gary Feldman
Matt Trentini wrote: Thanks for all your help folks. A custom help task ought to do the job. Still seems to me that -projecthelp should parse any include tags but hey, I can live with that limitation! :) Would anyone be interested in a patch for that behaviour? Or is it undesirable (as it s

Re: [Nant-users] Including Nant build files

2005-08-17 Thread Merrill Cornish
Matt, A simple version could parse tasks with literal pathnames and quietly skip tasks that reference properties. Not perfect, but it would work in many cases. Merrill --- SF.Net email is Sponsored by the Better Software Conference & EXPO

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Matt Trentini
Heya Merrill, > If you parse tasks, then you would also (I think) have to parse > properties > since the include pathname could be defined by property expansion. However, > properties can be conditionalized by tasks, so they have to be parsed, > and > properties get defaults by command lin

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Merrill Cornish
Matt, >>> -projecthelp should parse any include tags I think the problem is with the camel getting his nose in the tent. :-) If you parse tasks, then you would also (I think) have to parse properties since the include pathname could be defined by property expansion. However, properties can b

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Matt Trentini
Heya Ian, > >Would anyone be interested in a patch for that behaviour? Or is it > >undesirable (as it seemed to be for Gary at least)? > > > > > Definately. I take it that definitely was directed at the "interested in a patch". ;) > I vaguely started looking at it a while ago but didn't get >

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Ian MacLean
Matt Trentini wrote: Thanks for all your help folks. A custom help task ought to do the job. Still seems to me that -projecthelp should parse any include tags but hey, I can live with that limitation! :) Would anyone be interested in a patch for that behaviour? Or is it undesirable (as it

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Matt Trentini
Thanks for all your help folks. A custom help task ought to do the job. Still seems to me that -projecthelp should parse any include tags but hey, I can live with that limitation! :) Would anyone be interested in a patch for that behaviour? Or is it undesirable (as it seemed to be for Gary at

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Merrill Cornish
Matt, I don't believe you can do what you would like to do. As I remember from some previous question, --projecthelp doesn't actually cause the NAnt file to be processed so tasks and ${propertyname} substitutions aren't executed. Instead, --projecthelp merely reads the NAnt file serially loo

Re: [Nant-users] Including Nant build files

2005-08-16 Thread Gary Feldman
Matt Trentini wrote: ...Which works fine. :) What I'd like to do however is get project help on one of the specific build files that included targets from both the specific build file and the common build file. Ie, I'd like to be able to do: nant -buildfile:specific.build -projecthelp An

[Nant-users] Including Nant build files

2005-08-15 Thread Matt Trentini
Heya Guys, I'm trying to shift some common targets into one NAnt script and use those operations from multiple NAnt scripts. Something like this: And this: Which works fine. :) What I'd like to