Hi Evan, > Exactly. I'm also experiencing <exec> output going to output file AND to > log. My question (feature request?) is how do I turn off (or at least turn > down) logging, but not affect <exec> output. Not sure how this can be > accomplished.
Perhaps this might help? http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg07745.html If you want to see a more detailed (real-life) example: http://svn.berlios.de/viewcvs/subnant/trunk/src/targets/server/dump.build?view=markup Look in the svnadmin-dump target. Also, apologies for cross-threading here :) but dump.build shows (yet) another way you can use nant to produce documentation for scripts. In this case, there is a "help" target which is included in each of the tasks for my project (subversion administration using nant)...A core build script (subnant.build) invokes each target, with the target being called using a custom function. i.e. In subnant.build: <target name="dump" description="Dump repositories" ...> <nant buildfile="targets/server/dump.build" target="${subnant::get-target()}" /> </target> Where get-target() is: /// <summary> /// Determines whether to call help or default subnant target /// </summary> [Function("get-target")] public string getSubnantTarget() { if (Project.BuildTargets.Contains("help")) { return "help"; } else { return Project.CurrentTarget.Name; } } This way, you can get basic info for all tasks in the project by just running -projecthelp option (because each task has a description in subnant.build), and detailed documentation is available by calling help and the targets(s) you want help on, which is similar to a lot of other command line tools. Finally, if you want to trim down the console output shown by nant, so that it appears like any other command line too, try creating a batch file (or script in linux), and echo at warning level. Here's how subnant.bat is created: @echo off nant -emacs -indent:-8 -quiet -nologo -buildfile:"\path\to\subnant.build" %* So to get documentation on dump: subnant help dump peace si ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users