Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 0.9.2
-
Fix Version/s: JRuby 0.9.8
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
This ticket is a placeholder for some work on the complete jar to allow extraction of a JRuby environment and direct launching of irb and gem. It features:
- Extraction of a jruby directory footprint from a jruby-complete.jar. Run one of the following:
java -jar jruby-complete.jar --command extract # extracts to ~/.jruby java -jar jruby-complete.jar --command extract path/to/new/jruby/home
The first command extracts the directory to a specified location, while the second extracts to jruby.home. Per
JRUBY-418, jruby.home defaults to ~/.jruby if not specified as a system property. - Run irb directly from the jar.
java -jar jruby-complete.jar --command irb
- Run Rubygems' gem command directly from the jar. This will also perform an extraction if jruby.home does not exist, so that gem has a directory in which to place installed gems.
java -jar jruby-complete.jar --command gem install rake
Note: this is only available with the maven-built form of jruby-complete.jar at the moment. To build yourself, cd to jruby/maven/jruby-complete.jar and type mvn install.
Issue Links
| This issue depends upon: | ||||
| JRUBY-418 | Reduce reliance on jruby.* system properties |
|
|
|
I like it a lot, but the command line is rather long. What about:
java -jar jruby-complete.jar -command=extract
java -jar jruby-complete.jar -command=irb
java -jar jruby-complete.jar -command=gem install rake
Or something similar? There could be a set of "known" commands and a way to register new ones (like for gem, rake, rails).