ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: setLevel on echo task in JavaScript
Date Tue, 01 Mar 2005 22:22:45 GMT
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


Mime
View raw message