Bugs item #1214732, was opened at 2005-06-04 12:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1214732&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: IRON (imakowski)
Assigned to: Nobody/Anonymous (nobody)
Summary: Verbosity is not set corectly for tasks.

Initial Comment:
This is very critical issue because in my case log file is 
5 - 6 MB big. ( something about 3 - 4 MB of logs are 
from uneeded output )

For example:

1. delete task:
line for one file should look like this
if (File != null) { // delete a single file
                // delete the file in verbose mode
                DeleteFile(File.FullName, Verbose);
} else {....}


2. Execute task outputs its log even if output attribute is 
set to file ( this attribute should redirect STDoutput to file)

ExternalProgramBase.cs should be changed to look like 
this:

// ensure only one thread writes to the log at any time
lock (_lockObject) {
     if (Output != null) 
     {
                                        
        StreamWriter writer = new StreamWriter
(Output.FullName, doAppend);
                                        
        writer.WriteLine(logContents);
                                        
        doAppend = true;
                                        
        writer.Close();
} else if( Verbose == true )
{
                        
        OutputWriter.WriteLine(logContents);
}
        }

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1214732&group_id=31650


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to