Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 70198 invoked from network); 21 Mar 2007 13:40:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2007 13:40:51 -0000 Received: (qmail 68737 invoked by uid 500); 21 Mar 2007 13:40:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68702 invoked by uid 500); 21 Mar 2007 13:40:51 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 68691 invoked by uid 99); 21 Mar 2007 13:40:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 06:40:51 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2007 06:40:40 -0700 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id l2LDeEoo031425 for ; Wed, 21 Mar 2007 14:40:14 +0100 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Wed, 21 Mar 2007 14:40:17 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: How to silence errors in SQL task or log Date: Wed, 21 Mar 2007 14:40:16 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to silence errors in SQL task or log Thread-Index: AcdrvcpkBaLD15veQwaFZXi2+nYCVgAAHytw From: To: X-OriginalArrivalTime: 21 Mar 2007 13:40:17.0175 (UTC) FILETIME=[760B2A70:01C76BBE] X-Virus-Checked: Checked by ClamAV on apache.org Just some ideas ... a) b) custom Logger - if a special output comes, it starts/ends logging - special output could be done with Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Hans Schwaebli [mailto:hans_schwaebli@yahoo.com]=20 >Gesendet: Mittwoch, 21. M=E4rz 2007 14:35 >An: Ant Users List >Betreff: Re: How to silence errors in SQL task or log > >Internal, external ... didn't matter for my question. There is=20 >a error stream which I would like to conveniently redirect.=20 >The easiest thing is in the Ant script itself. In one SQL call=20 >I want to redirect it, in another not. Setting SQL level=20 >globally to info would not fit. There are still ways to do it,=20 >but they add even more complexity with all its side effects. > > If I decide to continue the SQL script in case of an error,=20 >it would be nice if Ant by default would not print the error=20 >stream then. > =20 > Okay, another case where I didn't overlook anything and now=20 >know that it is digging in the dirt deeply because of "by=20 >design" stuff. Its not just Ant, but CruiseControl, CVS and=20 >other stuff with such things. > =20 > =20 >Steve Loughran wrote: > Hans Schwaebli wrote: >> Can anybody tell my why cannot be used for the SQL task? > >because sql task is not executing an external program > >> I want to silence the errors if they occur when running the=20 >SQL task. But it didn't work. Any solution? Best would be to=20 >log all errors of a certain SQL task on info level. This=20 >flexibility I am missing. > >log through log4j and set your log4j properties file to log sql errors=20 >at info level? > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > >=20 >--------------------------------- >Be a PS3 game guru. >Get your game face on with the latest PS3 news and previews at=20 >Yahoo! Games. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org