Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99856 invoked from network); 17 Jun 2008 17:17:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 17:17:02 -0000 Received: (qmail 3855 invoked by uid 500); 17 Jun 2008 17:17:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3827 invoked by uid 500); 17 Jun 2008 17:16:59 -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 3816 invoked by uid 99); 17 Jun 2008 17:16:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 10:16:59 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.0.145] (HELO exprod5og103.obsmtp.com) (64.18.0.145) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Jun 2008 17:16:09 +0000 Received: from source ([69.48.200.224]) by exprod5ob103.postini.com ([64.18.4.12]) with SMTP; Tue, 17 Jun 2008 10:14:05 PDT Received: (qmail 3000 invoked by uid 509); 17 Jun 2008 12:14:05 -0500 Received: from 10.20.1.54 by sgp-ns-01.pointserve.com (envelope-from , uid 507) with qmail-scanner-1.25-st-qms (clamdscan: 0.87/3572. spamassassin: 3.1.9. perlscan: 1.25-st-qms. Clear:RC:1(10.20.1.54):. Processed in 0.060821 secs); 17 Jun 2008 17:14:05 -0000 X-Antivirus-MYDOMAIN-Mail-From: rloehr@pointserve.com via sgp-ns-01.pointserve.com X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(10.20.1.54):. Processed in 0.060821 secs Process 2993) Received: from unknown (HELO exchange2007.pointserve.com) (10.20.1.54) by sgp-ns-01.pointserve.com with RC4-MD5 encrypted SMTP; 17 Jun 2008 12:14:05 -0500 Received: from SGP-EXCHANGE.pointserve.com ([10.20.1.51]) by exchange2007.pointserve.com ([10.20.1.54]) with mapi; Tue, 17 Jun 2008 12:11:00 -0500 From: "Loehr, Ruel" To: Ant Users List Date: Tue, 17 Jun 2008 12:10:59 -0500 Subject: writing to ant's logger from external type Thread-Topic: writing to ant's logger from external type Thread-Index: AcjQnRz43lPOrWDiRB2ojUmJBlGEFQ== Message-ID: <93B3B6122B906D44BC7E8B8CEFB0DBBB1844E404F1@SGP-EXCHANGE.pointserve.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_93B3B6122B906D44BC7E8B8CEFB0DBBB1844E404F1SGPEXCHANGEpo_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_93B3B6122B906D44BC7E8B8CEFB0DBBB1844E404F1SGPEXCHANGEpo_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've written a task which uses a custom data type. I'd like to be able to= write log messages from within that type using ANT's logging mechanism. = If I use that type independently, I'd like to just write to System.out. Does anyone know of a way to pass ants logger to an external type such that= I could do something like this: If (logger !=3Dnull) Logger.LogMessage("My message"); Else System.out.println("My message"); Thanks! R Loehr --_000_93B3B6122B906D44BC7E8B8CEFB0DBBB1844E404F1SGPEXCHANGEpo_--