Add compatibility support for JRuby #11

Closed
wants to merge 4 commits into
from

3 participants

@dekellum

As you may be aware, open4 doesn't work on jruby, because it uses fork which isn't JVM friendly.

I am able to get jruby 1.6.x working by adding an alternative implementation of RemoteTask.run which uses jruby's popen3. This is done by way of selective mixin of new Open3 or Open4 modules. Details of how this works in jruby is commented in open3.rb.

@dekellum

Hi, could I get any feedback on this? Concerns? Prefer it done a different way? Thanks.

@daveed

Hi,
I am facing the same issue with jruby 1.6.5.1.

I saw another solution from almost 3 years ago from jdamick using the Java ProcessBuilder (https://github.com/jdamick/vlad).

Any feedbacks would be great :)

Thanks!

@dekellum

If it helps you @mazhout or anyone reading this, if you are using Bundler with your deployment Rakefile, you can reference a working patched rake-remote_task via the following in your Gemfile:

gem 'rake-remote_task',
    :git => 'git://github.com/dekellum/rake-remote_task.git',
    :tag => 'v2.0.6-jruby.1'

I'll keep these tags around, or fork your own.

@daveed

Thanks for the patch ;)

@zenspider zenspider was assigned Apr 1, 2012
@dekellum

"I'm tired of non-communication. I've released this..." see above.

@zenspider
Seattle Ruby Brigade member

Sorry. I'm not too interested in doing multi-platform support on this. Releasing using mri seems like a fair compromise. I'm going to close this.

@zenspider zenspider closed this Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment