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

And get it to display:

   output.message

as a target. Currently that only happens if I query common.build. Does that make sense?

Should I be structuring my targets differently or is there just no way
to currently do this?
It makes sense, but as far as I know there's no way to do it. I'm not sure it will be the best approach in the long run, either. I've been doing the same sort of partitioning into shared include files, and I'm very happy with the resulting design. But as I work on this, I create many small targets, based on the one object/target should do one thing principle. Most of these aren't intended for the command line, and just clutter up the -projecthelp listing, making the listing worthless. By keeping the primary targets very simple (e.g. clean, build, test, clean-all, build-all, test-all, etc.), I obviate the need for projecthelp anyway. If I thought I really needed this sort of help, I'd write a usage target that just printed the important targets, perhaps with additional help and detailed help targets.

I can think of many ways that -projecthelp could be made more flexible and powerful, including working with included build files, but not for the 0.85 release.

Gary



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to