Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 67311 invoked from network); 1 Mar 2005 22:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Mar 2005 22:47:34 -0000 Received: (qmail 11756 invoked by uid 500); 1 Mar 2005 22:47:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 11541 invoked by uid 500); 1 Mar 2005 22:47:17 -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 11435 invoked by uid 99); 1 Mar 2005 22:47:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from junior.lgc.com (HELO junior.lgc.com) (134.132.72.99) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:47:16 -0800 Received: from lgchvw01.landmark.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id j21MlEu04483 for ; Tue, 1 Mar 2005 16:47:14 -0600 (CST) Received: from 134.132.72.99 by lgchvw01.landmark.lgc.com (InterScan E-Mail VirusWall NT); Tue, 01 Mar 2005 16:47:09 -0600 Received: from HOUEXCH903.landmark.lgc.com (houexch903 [134.132.167.43]) by junior.lgc.com (8.11.7/8.11.3) with ESMTP id j21Ml8N04466 for ; Tue, 1 Mar 2005 16:47:09 -0600 (CST) Received: from HOUEXCH902.landmark.lgc.com ([134.132.167.38]) by HOUEXCH903.landmark.lgc.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 1 Mar 2005 16:47:06 -0600 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="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: setLevel on echo task in JavaScript Date: Tue, 1 Mar 2005 16:47:06 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: setLevel on echo task in JavaScript Thread-Index: AcUer596VDH15+JTT4eDFWTPMj3i5QAAKIYg From: "Dominique Devienne" To: "Ant Users List" X-OriginalArrivalTime: 01 Mar 2005 22:47:06.0658 (UTC) FILETIME=[98347820:01C51EB0] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Shatzer, Larry [mailto:Larry.Shatzer@MIROtechnologies.com] > > From: Dominique Devienne [mailto:DDevienne@lgc.com] > > importClass(Packages.org.apache.tools.ant.taskdefs.Echo.EchoLevel); > > info =3D new EchoLevel(); > > info.setValue("info"); > > > > echo =3D project.createTask("echo"); > > echo.setLevel(info); > > echo.setMessage("test message"); > > echo.perform(); >=20 > With that I get: ReferenceError: "EchoLevel" is not defined. I guess it's because it's an inner class (even a static one). I find JavaScript quirky quiet often ;-) Maybe importClass(...Echo); With info =3D new Echo.EchoLevel(); Would have worked better. > So I used this instead: >=20 > info =3D Packages.org.apache.tools.ant.taskdefs.Echo.EchoLevel(); > info.setValue("info"); Thanks for sharing. I didn't know you could skip the new! Live and learn ;-) --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org