[ 
https://issues.apache.org/jira/browse/BUILDR-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559406#action_12559406
 ] 

Assaf Arkin commented on BUILDR-3:
----------------------------------

Major change alert.  I decided to dump JavaWrapper, and go with the JRuby 
import style, so:

Java.java.lang.String

The Java module implements this for RJB, and uses it natively in JRuby.  You 
still need to call Java.load before accessing any Java classes, due to the fact 
that Buildr needs the opportunity to populate the classpath.  This is different 
from JRuby's require, it will also download and install artifacts.

The code is now split between java.rb (for various commands like javac, javadoc 
and backward compatible wrapper), rjb.rb and jruby.rb, the last two loaded 
depending on the platform.  I did not add the RubyZip patch yet, and can't get 
the test cases to pass yet.

> Buildr being usable on JRuby
> ----------------------------
>
>                 Key: BUILDR-3
>                 URL: https://issues.apache.org/jira/browse/BUILDR-3
>             Project: Buildr
>          Issue Type: New Feature
>         Environment: JDK 1.6. 
> JRuby SNAPSHOT: jruby-complete-1.1-20071211.100054-17
>            Reporter: Victor Hugo Borja
>            Assignee: Assaf Arkin
>         Attachments: 0001-BuildR-is-usable-in-JRuby.patch, 
> 0002-Use-RubyString.to_java_bytes-instead-of-unpacking-th.patch
>
>
> Attached patch makes buildr-HEAD usable on JRuby. See the patch changelog for 
> details.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to