Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 56162 invoked from network); 1 Mar 2005 22:24:23 -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:24:23 -0000 Received: (qmail 77324 invoked by uid 500); 1 Mar 2005 22:24:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 77283 invoked by uid 500); 1 Mar 2005 22:24: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 77269 invoked by uid 99); 1 Mar 2005 22:24: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 Unknown (HELO mail.mdli.com) (208.200.221.8) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:24:12 -0800 Received: from exch-sl02.mdli.com (exch-sl02.mdli.com [145.36.243.10]) by mail.mdli.com (Postfix) with ESMTP id F22A0B5EBD for ; Tue, 1 Mar 2005 14:22:49 -0800 (PST) Received: from [145.36.245.225] (145.36.245.225 [145.36.245.225]) by exch-sl02.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id FZB3FCMR; Tue, 1 Mar 2005 14:22:49 -0800 Message-ID: <4224EB35.3020403@mdl.com> Date: Tue, 01 Mar 2005 14:22:45 -0800 X-Sybari-Trust: 7bb72937 29743b25 d72cb15b 0000013d From: "Alexey N. Solofnenko" User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050301) MIME-Version: 1.0 To: Ant Users List Subject: Re: setLevel on echo task in JavaScript References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It is Echo.EchoLevel and the method is setValue(). - Alexey. Dominique Devienne wrote: >>From: Shatzer, Larry [mailto:Larry.Shatzer@MIROtechnologies.com] >> >>I have this javascript: >> >>echo = project.createTask("echo"); >>echo.setLevel("info"); >>echo.setMessage("test message"); >>echo.perform(); >> >>It fails with this error: >> >>org.mozilla.javascript.EvaluatorException: Can't find method >>org.apache.tools.ant.taskdefs.Echo.setLevel(string). >> >>Any idea how I can call setLevel on the echo task via JavaScript? >> >> > >setLevel probably takes an EnumeratedAttribute-derived type, not >a String. Lookup the code to find out which class to 'new', and call >setName("info") on this enum instance, prior to send it to echo. > >--DD > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > -- ------------------------------------------------------------------------ / Alexey N. Solofnenko MDL Information Systems, Inc. work: 510-357-2222x1726 home: http://trelony.cjb.net/ / --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org