Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 97311 invoked from network); 22 Feb 2002 18:36:39 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Feb 2002 18:36:39 -0000 Received: (qmail 2254 invoked by uid 97); 22 Feb 2002 18:36:28 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 2191 invoked by uid 97); 22 Feb 2002 18:36:28 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 2112 invoked from network); 22 Feb 2002 18:36:27 -0000 Message-ID: From: Mike Kaufman To: "'Ant Users List'" Subject: RE: outputing stdout of exec tasks? Date: Fri, 22 Feb 2002 10:38:57 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > > > Is there someway I can tell ant to periodically flush output > > streams of > > exec'd processes? > > > > From looking at the source, it appears that: > > (1) Execute.class does the real work > (2) Execute takes an ExecuteStreamHandler to process the > stdout and stderr > streams > (3) LogStreamHandler is the most common ExecuteStreamHandler > (4) LogStreamHandler wraps stdout and stderr in > LogOutputStream objects and > starts new Thread foreach stream > (5) LogOutputStream sends each line out output to the Task.log method > (6) Task.log sends to Project.log > > Therefore, I'm making an educated guess that the behavior you want is > already the default (it seems so for my processes). Could it > be that your > process just takes awhile to output anything? > Doesn't appear to be the case. I could be missing something, but the only time streams are explicitly flushed is one a task completes. There doesn't appear to be periodic stream flushing in 1.4.1 release of the code. Mike -- To unsubscribe, e-mail: For additional commands, e-mail: