> From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
> It is Echo.EchoLevel and the method is setValue().

Thanks Alexey ;-) Something along those lines (not tested). --DD

importClass(Packages.org.apache.tools.ant.taskdefs.Echo.EchoLevel);
info = new EchoLevel();
info.setValue("info");

echo = project.createTask("echo");
echo.setLevel(info);
echo.setMessage("test message");
echo.perform();

> Dominique Devienne wrote:
> >>From: Shatzer, Larry [mailto:[EMAIL PROTECTED]
> >>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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to