Hi everyone,
I want to add JRuby to my recently started site
codingkata.org which hosts programming challenges to be solved in a
JVM-based language.
I’m having problems to add JRuby support because I need to compile the
project into a JAR (using Maven).
I found the jruby-rake-plugin
http://old.nabble.com/Running-a-JRuby-Script-With-Maven-td24261672.html#a24261672
here , but don’t know if/how it can export a JAR. I also found the
http://matschaffer.com/2009/10/call-jruby-jython-from-maven/ tip to use
the
antrun-plugin with org.jruby.Main to compile it - which doesn’t work for
me
as I have many dependencies and unknown number of source files.
So the bottom line is: Is there a way to compile JRuby scripts to a JAR?
Cheers,
stephanos
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26694545.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I’ve got a JRuby plugin for Gradle which might serve you well:
~~ Robert.
stephanos wrote:
http://old.nabble.com/Running-a-JRuby-Script-With-Maven-td24261672.html#a24261672
here , but don’t know if/how it can export a JAR. I also found the
http://matschaffer.com/2009/10/call-jruby-jython-from-maven/ tip to use the
antrun-plugin with org.jruby.Main to compile it - which doesn’t work for me
as I have many dependencies and unknown number of source files.
So the bottom line is: Is there a way to compile JRuby scripts to a JAR?
Cheers,
stephanos
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
hi stephanos,
I maintain a couple of maven plugins for jruby for my projects:
http://github.com/mkristian/jruby-maven-plugins (and one for JRoR)
I am not quite sure what you want to do since you can basically pack
anything via the resources plugin into a jar. I would need some more
info to say more.
with regards
Kristian
On Tue, Dec 8, 2009 at 7:47 PM, stephanos [email protected] wrote:
I found the jruby-rake-plugin
–
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA
tel: +91 468 2319577
protect your privacy while searching the net: www.ixquick.com
_=_
q(-_-)p
'_) (_`
/__/ \
_(<_ / )_
(__\_\_|_/__)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Tue, Dec 8, 2009 at 11:58 AM, stephanos [email protected] wrote:
What I need to do is compile an .rb file with/in JRuby so that at the end a
JVM-compatible (bytecode based) JAR comes out - which then can be loaded in
an OSGi container and called by regular Java code.
Check out the compile logic in here - you should be able to adapt it
for your use:
http://github.com/pivotal/execwar/blob/8415f5d1c2a63d541d327553c3dcbc1685f808cb/lib/tasks/uberwar.rake
– Chad
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I experimented with jruby compile with rails before.
if you are interested then I can add a compile goal to the
jruby-maven-plugin which takes the ruby files in src/main/ruby and
compiles them. in looks like a good addition to the plugin.
regards Kristian
On Wed, Dec 9, 2009 at 12:28 AM, stephanos [email protected] wrote:
JVM-based language.
me
       =
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email
–
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA
tel: +91 468 2319577
protect your privacy while searching the net: www.ixquick.com
_=_
q(-_-)p
'_) (_`
/__/ \
_(<_ / )_
(__\_\_|_/__)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Well that sounds like a wonderful idea - a maven plugin to compile
.rb-source
files to bytecode (JAR) would make me happy 
Where would I find your plugin atm?
Do you think it’s complicated?
It feels so weird that no one has ever done it before.
kristian-2 wrote:
info to say more.
codingkata.org  which hosts programming challenges to be solved in a
the
tel: +91 468 2319577
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26698864.html
protect your privacy while searching the net: www.ixquick.com
http://xircles.codehaus.org/manage_email
–
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26699824.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
You’re right - that wasn’t clear enough.
What I need to do is compile an .rb file with/in JRuby so that at the
end a
JVM-compatible (bytecode based) JAR comes out - which then can be loaded
in
an OSGi container and called by regular Java code.
kind regards,
stephanos
kristian-2 wrote:
with regards
as I have many dependencies and unknown number of source files.
–
q(-_-)p
–
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26698864.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Thanks for your advice! Will look into it…
Robert Fischer wrote:
http://www.codingkata.org/
the
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26699886.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I am just about to commit it and then you find it under
http://github.com/mkristian/jruby-maven-plugins
the release onto my server takes some time. and I might need to add
some instruction how to use an external repository other the defaults.
until it is uploded you need to build it yourself
regards
Kristian
On Wed, Dec 9, 2009 at 1:32 AM, stephanos [email protected] wrote:
On Wed, Dec 9, 2009 at 12:28 AM, stephanos [email protected] wrote:
stephanos
anything via the resources plugin into a jar. I would need some more
 http://www.codingkata.org/
use
stephanos
View this message in context:
To unsubscribe from this list, please visit:
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email
–
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA
tel: +91 468 2319577
protect your privacy while searching the net: www.ixquick.com
_=_
q(-_-)p
'_) (_`
/__/ \
_(<_ / )_
(__\_\_|_/__)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Thanks for the hint! So basically the script uses jrubyc to compile the
.rb
files - does it output .class files? I can’t find much on jrubyc on the
internet…
Chad W. wrote:
–
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26700010.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Tue, Dec 8, 2009 at 1:16 PM, stephanos [email protected] wrote:
Thanks for the hint! So basically the script uses jrubyc to compile the .rb
files - does it output .class files? I can’t find much on jrubyc on the
internet…
Yeah it spits out .class files.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
awesome! will try it tomorrow and give you feedback 
kristian-2 wrote:
On Wed, Dec 9, 2009 at 1:32 AM, stephanos [email protected] wrote:
an OSGi container and called by regular Java code.
http://github.com/mkristian/jruby-maven-plugins (and one for JRoR)
Hi everyone,
I found the jruby-rake-plugin
So the bottom line is: Is there a way to compile JRuby scripts to a
Kristian Meier + Saumya Sharma + Sanuka Meier
      ') (`
Edayanmula West PO - 689532,
     (<  / )_
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26701238.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
just uploaded the plugins and started some documentation.
in case you are using it and have any problems please feel free to
contact me.
with regards
Kristian
On Wed, Dec 9, 2009 at 1:32 AM, stephanos [email protected] wrote:
On Wed, Dec 9, 2009 at 12:28 AM, stephanos [email protected] wrote:
stephanos
anything via the resources plugin into a jar. I would need some more
 http://www.codingkata.org/
use
stephanos
View this message in context:
To unsubscribe from this list, please visit:
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email
–
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA
tel: +91 468 2319577
protect your privacy while searching the net: www.ixquick.com
_=_
q(-_-)p
'_) (_`
/__/ \
_(<_ / )_
(__\_\_|_/__)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
it works perfectly! 
-thanks a lot for this one!
I’m now just struggling with a JAVA<->JRuby issue (
http://old.nabble.com/JRuby-Class-with-Java-Interface-in-OSGi-to26707257.html
http://old.nabble.com/JRuby-Class-with-Java-Interface-in-OSGi-to26707257.html
)
kristian-2 wrote:
On Wed, Dec 9, 2009 at 1:32 AM, stephanos [email protected] wrote:
an OSGi container and called by regular Java code.
http://github.com/mkristian/jruby-maven-plugins (and one for JRoR)
Hi everyone,
I found the jruby-rake-plugin
So the bottom line is: Is there a way to compile JRuby scripts to a
Kristian Meier + Saumya Sharma + Sanuka Meier
      ') (`
Edayanmula West PO - 689532,
     (<  / )_
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
View this message in context:
http://old.nabble.com/Maven-%2B-JRuby-%3D-JAR---tp26694545p26707267.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email