I just upgraded to the latest nightly, after using one from back at the
beginning of July, and discovered that the logging behavior of <exec> has
changed.

It used to print out the program file that was being executed, but doesn't
do that any more.  The comment in the log for ExecTask.cs says that this
responsibility has shifted to the default logger, but obviously the default
logger can only log "[exec]", not the file name (since only the specific
task knows the file name).  So now there's no indication of exactly which
file is being executed.  This is a nuisance, partly because it's convenient
to search for the particular executable in order to find an area of the log
of interest, and partly because if relative paths or other properties are
used to construct the executable file name, it's useful to see exactly what
is being executed, and where.  In particular, if you have a sequence of
<exec> tasks that only produce output on an error, and the content of the
error message doesn't show which exec it was (e.g. executing the same
program with different command line options), then you don't have any way of
knowing which of the exec tasks is responsible for the error.

Using the verbose option does cause the information to be output, but you
either need to know which <exec> to set it on, set it on all of them (which
is a pain if you have a bunch of existing build files), or use the global
verbose, which creates its own set of hassles.  And it isn't clear from the
comment in ExecTask.cs whether it was intended to change this aspect of the
behavior.

Another change is that the <exec> task now prepends "[exec]" to every line
of output from the program being executed?  Why?  That just makes it noise,
and makes scanning the output difficult, and adds extra steps if you need to
extract the output.  It doesn't seem to add anything.

Gary




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to