here is an example of what I want to do:
I have a ruby script ‘prime.rb’ with a method ‘isPrimeNumber(num)’ which
should be compiled into a JAR ‘prime.jar’. It should be possible to use
this JAR from a Java class main.java which compiles to main.jar and
calls the described method to check if a number is a prime number.
=> basically I need to compile the JRuby script to a Java bytecode
The conditions are:
- everything must be done via Maven (note: Maven ‘knows’ Ant as well)
- no program can be manually installed - only Maven and the JDK are
present on the PC
I asked a similar question quite a while ago
(http://www.ruby-forum.com/topic/208555#new), but didn’t get
satisfactory replies - yet I am still interested in this.