Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94425 invoked from network); 27 Sep 2004 14:19:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Sep 2004 14:19:47 -0000 Received: (qmail 88467 invoked by uid 500); 27 Sep 2004 14:18:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 88359 invoked by uid 500); 27 Sep 2004 14:18:58 -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 88280 invoked by uid 99); 27 Sep 2004 14:18:57 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.186] (HELO web52909.mail.yahoo.com) (206.190.39.186) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 27 Sep 2004 07:18:56 -0700 Message-ID: <20040927141852.10607.qmail@web52909.mail.yahoo.com> Received: from [212.95.183.130] by web52909.mail.yahoo.com via HTTP; Mon, 27 Sep 2004 07:18:52 PDT Date: Mon, 27 Sep 2004 07:18:52 -0700 (PDT) From: Ivan Ivanov Subject: Re: redirecting build output to a log file To: Ant Users List In-Reply-To: <005201c4a49a$5990fed0$ba015b0a@ionlifesci19> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It depends what you actually want to do with the output. Usually I do it in one of these way 1) ant -f mybuild.xml mytarget > mylog Here actually your OS redirects the output, not Ant 2) ant -l mylog mybuild.xml mytarget Here -l (or -logfile) option has been given to ant and it logs the build process in mylog file. 3) Ant comes with a bunch of predifined loggers which log the build process in various ways. You van see them at http://ant.apache.org/manual/listeners.html --- Ashutosh Kumar wrote: > How can we redirect build output to a log file? > Regds > Ashutosh > > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org