System properties to set bindir and default rubygems paths
----------------------------------------------------------

                 Key: JRUBY-4729
                 URL: http://jira.codehaus.org/browse/JRUBY-4729
             Project: JRuby
          Issue Type: Improvement
    Affects Versions: JRuby 1.5
         Environment: jruby 1.5.0.RC1 (ruby 1.8.7 patchlevel 249) (2010-04-17 
0ce95cb) (Java HotSpot(TM) Server VM 1.6.0_19) [i386-java]
            Reporter: David Kellum
            Assignee: Thomas E Enebo


Problem statement: In MRI, RbConfig::CONFIG can be customized during the build 
configuration. JRuby doesn't have an equivalent opportunity.  Rubygems also has 
baked in defaults, gemrc config files, and environment variables 
GEM_HOME/GEM_PATH, but the former is not configurable by an installer, and the 
config files/environment variables are shared with MRI rubygems, so its not 
possible to have JRuby specific settings.

Feature request: For a more customized, system-wide installation, it would be 
nice if bindir and the default rubygems HOME and PATH could initially be set 
via system properties. In particular, the following proprieties would override 
or take the place of existing defaults if found:

{noformat}
jruby.bindir   --> RbConfig::CONFIG['bindir']
(jruby.script  --> RbConfig::CONFIG['ruby_install_name'])
jruby.gem.path --> Gem.default_path
jruby.gem.dir  --> Gem.default_dir
{noformat}

I have implemented this enhancement and will provide patches shortly.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to