Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42817 invoked from network); 30 Jan 2004 00:16:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Jan 2004 00:16:33 -0000 Received: (qmail 31999 invoked by uid 500); 30 Jan 2004 00:15:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31933 invoked by uid 500); 30 Jan 2004 00:15:53 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 31901 invoked from network); 30 Jan 2004 00:15:52 -0000 Received: from unknown (HELO hotmail.com) (65.54.247.87) by daedalus.apache.org with SMTP; 30 Jan 2004 00:15:52 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 29 Jan 2004 16:15:59 -0800 Received: from 24.131.161.245 by by2fd.bay2.hotmail.msn.com with HTTP; Fri, 30 Jan 2004 00:15:56 GMT X-Originating-IP: [24.131.161.245] X-Originating-Email: [richmwagner@hotmail.com] X-Sender: richmwagner@hotmail.com From: "Rich Wagner" To: user@ant.apache.org Bcc: Subject: RE: How grab output to "System.out"? Date: Fri, 30 Jan 2004 00:15:56 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Jan 2004 00:15:59.0734 (UTC) FILETIME=[3CF88960:01C3E6C6] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Have you thought about: (a) Writing a "wrapper" class that... (b) has a "public static void main (String[] args) { ... }" method, which... (c) includes a call to "System.setOut", and subsequently... (d) invokes Ant's "main" method ? If your "programmatic Ant invocation" is currently a direct call to Ant's "main", then you'd change that to invoke your wrapper instead... Just a suggestion... -- Rich Wagner >From: "Robert Paris" >Reply-To: "Ant Users List" >To: user@ant.apache.org >Subject: How grab output to "System.out"? >Date: Fri, 30 Jan 2004 00:03:37 +0000 > >I am working with Ant programatically and I need to be able to grab the >output (outputstream) from programs that run in Ant. I know Ant does this >as when my program does: > System.out.println( "test" ); >Ant actually prints: > [Java] test > >Does anyone know what class/method I need to use to do this? > >Thanks! > >_________________________________________________________________ >Check out the new MSN 9 Dial-up � fast & reliable Internet access with >prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > _________________________________________________________________ Learn how to choose, serve, and enjoy wine at Wine @ MSN. http://wine.msn.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org