buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan McGregor <dun...@oneeyedmen.com>
Subject Re: Buildr and Cucumber - classpath
Date Tue, 22 Jun 2010 20:06:08 GMT
So just for the record, JRuby tries to optimize invocations of itself without starting a new
JVM, and so can't accept vm parameters.

A search for 

[jruby-user] Odd behaviour with invoking jruby via backtick on MacOS

will reveal the conversation and some solutions.

Thanks to all again

Duncan

On 22 Jun 2010, at 15:47, Antoine Toulme wrote:

> OK, you can chat with the jruby devs over the #jruby IRC channel about that
> - or Charles will comment here whenever he reads this message.
> 
> On Tue, Jun 22, 2010 at 07:28, Duncan McGregor <duncan@oneeyedmen.com>wrote:
> 
>> 
>> On 22 Jun 2010, at 15:01, Duncan McGregor wrote:
>> 
>>> quite happily, but if I try that from a rake task in Buildr
>>> 
>>> task :run_task do
>>> puts `which jruby`
>>> puts `jruby -J-cp /Users/duncan/.m2/repository/org/netbeans/jemmy/
>> 2.2.7.5/jemmy-2.2.7.5.jar -S cucumber src/features`
>>> end
>>> 
>>> it fails
>>> 
>>> /usr/local/jruby/bin/jruby
>>> jruby: unknown option -J-cp
>> 
>> Actually this looks like a bug in JRuby, given that
>> 
>> jruby -J-Xmx512m -e 'puts `jruby -JXmx512m --version`'
>> 
>> from the command-line also fails.
>> 
>> I'll pull on that thread first.
>> 
>> Duncan


Mime
View raw message