buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Spiewak <>
Subject Re: Accessing unconventionally-capitalized java classes from buildr
Date Mon, 02 Mar 2009 21:04:12 GMT
I think that you're going to have to do an RJB import.  If you were  
using JRuby, you would need to use an unconventional syntax there as  
well since they make the same assumption.


On Mar 2, 2009, at 2:24 PM, Rhett Sutphin <>  

> Hi,
> I'm trying to invoke the command-line version of bnd ( 
> ) from buildr.  The utility has a main class (aQute.bnd.main.bnd)  
> which I'm trying to invoke in buildr like so:
> Java.aQute.bnd.main.bnd.main(args)
> I get the error "No arguments expected" for this.  Tracing into the  
> code, this seems to come from java/rjb.rb, which assumes that the  
> class name starts with a capital letter and so is treating the whole  
> thing as a series of packages.
> This is a reasonable assumption IMO, but I'm wondering if there's a  
> workaround for loading a class which doesn't fit it.  Do I need to  
> just do Rjb.import?  Or is there an rjb/jruby cross-compatible  
> syntax that I'm missing?
> Thanks,
> Rhett

View raw message