Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 46348 invoked from network); 1 Jul 2004 08:37:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 08:37:00 -0000 Received: (qmail 35114 invoked by uid 500); 1 Jul 2004 08:37:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34892 invoked by uid 500); 1 Jul 2004 08:37:06 -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 34795 invoked by uid 99); 1 Jul 2004 08:37:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=CLICK_BELOW X-Spam-Check-By: apache.org Received: from [134.132.72.99] (HELO junior.lgc.com) (134.132.72.99) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 01:37:00 -0700 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id i618Z5818942; Thu, 1 Jul 2004 03:35:05 -0500 (CDT) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Thu, 01 Jul 2004 03:36:11 -0500 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id <3BMR66JJ>; Thu, 1 Jul 2004 03:36:10 -0500 Message-ID: From: Dominique Devienne To: "'Woodchuck '" , "'Ant Users List '" Subject: RE: Is there a way to dual output log to terminal AND file? Date: Thu, 1 Jul 2004 03:36:07 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) List-Subscribe: Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Just own grain of salt on this: If you want a pure Ant solution, use either now, or someone develops a CompositeBuildLogger to dispatch messages to more than one build logger. The quickest on Unix and a Unix-like toolkit on Windows (Cygwin or other) is to use 'tee' to save to file and send to stdout at the same time. This must be enabled in the script that launches Ant though, rather than in Ant itself. --DD -----Original Message----- From: Woodchuck To: Ant Users List Sent: 6/30/2004 9:09 AM Subject: Re: Is there a way to dual output log to terminal AND file? i'm in windows and i made a .CMD file that i double-click to run my ant build process. here is my .CMD file: @setlocal @set TOMCAT_HOME="C:\Apache Group\Tomcat 4.1" @set ANT_HOME=C:\apache_ant_1.6.1 @set JAVA_HOME=C:\j2sdk1.4.1_02 @set path=%PATH%;%ANT_HOME%\bin @call ant -l build.log -lib %ANT_HOME%\lib -lib %TOMCAT_HOME%\common\lib @type build.log @pause my solution has nothing to do with Ant really, the @type will display the log file *after* ant has finished building whether successful or unsuccessful the @pause will keep the DOS window from closing automatically just another possibility :) --- Andrew Craig wrote: > Use the task. At the top of your build file, put : > > > > The output still goes out to the terminal, but also goes through to > the log.txt file. > > On Tue, 29 Jun 2004 14:55:54 -0700, Chris Burbridge ( Temp ) > wrote: > > > > Is there a way to have the logging output still go to the terminal, > but also be saved to a file? (Preferably, something that I could > specify from within the build file)? > > > > Thanks! > > > > > > > -- > Andrew > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org