buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Spiewak <djspie...@gmail.com>
Subject Re: findbugs uses a reserved word for a child element - trying to invoke "class" method
Date Wed, 15 Jul 2009 00:41:29 GMT
ant.send :class is going to trip the class method in Object I believe.  By
calling method_missing directly, you can avoid that shadowing.

Daniel

On Tue, Jul 14, 2009 at 7:39 PM, Alex Boisvert <boisvert@intalio.com> wrote:

> Or
>
> ant.send :class, :location => 'foo'
>
> alex
>
> On Tue, Jul 14, 2009 at 5:12 PM, Daniel Spiewak <djspiewak@gmail.com>
> wrote:
>
> > Try calling method_missing directly:
> >
> > ant.method_missing :class, :location => 'foo'
> >
> > Daniel
> >
> > On Tue, Jul 14, 2009 at 7:09 PM, Martin Grotzke <
> > martin.grotzke@javakaffee.de> wrote:
> >
> > > Hi,
> > >
> > > findbugs requires a nested element "class" that indicates, which
> classes
> > > shall be analyzed.
> > >
> > > When I try to specify this class property via
> > >  ant.class :location=>'foo'
> > > this of course fails.
> > >
> > > Is it somehow possible to solve this issue? (Perhaps ruby as a dynamic
> > > language can now score :))
> > >
> > > (I already tried s.th. like "ant.send :class ..." but without success
> -
> > > probably that was just too naive :))
> > >
> > > Thx && cheers,
> > > Martin
> > >
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message