ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shatzer, Larry" <Larry.Shat...@MIROtechnologies.com>
Subject RE: setLevel on echo task in JavaScript
Date Tue, 01 Mar 2005 22:37:56 GMT
> -----Original Message-----
> From: Dominique Devienne [mailto:DDevienne@lgc.com]
> Sent: Tuesday, March 01, 2005 2:33 PM
> To: Ant Users List
> Subject: RE: setLevel on echo task in JavaScript
> 
> 
> 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();

With that I get: ReferenceError: "EchoLevel" is not defined.

So I used this instead:

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

-- Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message