ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Ant log statements being created even when not used
Date Mon, 25 Sep 2006 14:22:33 GMT
Hi Kev,
this all sounds like closures or other form of first
class functions to me.  I know I've seen a lot of
discussion at IIRC JavaLobby etc. on whether Java
needs closures... but in any event new language
features don't help us in Ant development because we
stick to BC.  I was thinking of adding Object log
"messages" to Project and ProjectComponent, but even
if you just constructed dummy objects to hold the
strings, I think the strings would already be
instantiated by the object construction, so this
wouldn't help.... I don't think.  I don't know if
there's a useful answer to be found.

-Matt

--- Kevin Jackson <foamdino@gmail.com> wrote:

> Hi,
> Remember early this year I had a problem with a
> build that basically
> ran out of memory and if I commented out logging
> code I could get it
> to run?
> 
> http://www.digitalmars.com/d/lazy-evaluation.html
> 
> This explains exactly the problem (and a solution
> for D), I wonder if
> some solution exists for Java such that log
> statements are not as
> wasteful of resources as they currently are
> 
> Kev
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message