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 23:02:03 GMT
> -----Original Message-----
> From: Dominique Devienne [mailto:DDevienne@lgc.com]
> Sent: Tuesday, March 01, 2005 2:47 PM
> To: Ant Users List
> Subject: RE: setLevel on echo task in JavaScript
> 
> > 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 = new Echo.EchoLevel();
> 
> Would have worked better.
> 
> > So I used this instead:
> > 
> > info = 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
> 

That was a typo on my part. After I sent the response, I changed it to have
the 'new', since it is more readable.

Thanks for your help.

-- Larry

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


Mime
View raw message