CLASSPATH environment variable should be ignored if -J-cp or -J-classpath are
provided
--------------------------------------------------------------------------------------
Key: JRUBY-3800
URL: http://jira.codehaus.org/browse/JRUBY-3800
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Reporter: Charles Oliver Nutter
Priority: Minor
Fix For: JRuby 1.4
According to Java documentation, the -cp and -classpath flags cause any
CLASSPATH environment variable to be ignored. Currently in JRuby, we always
pull in the system CLASSPATH and append it to a -classpath parameter to the JVM.
I believe we should consider fixing this to behave like the Java command. Right
now, the order in which classpath modifiers are searched goes:
# anything in lib dir other than jruby's jar, ordered however the OS orders them
# anything specified with -J-cp or -J-classpath, in the order provided
# anything in CLASSPATH environment variable, in the order specified
We would want to decide whether CLASSPATH should be ignored when -J-cp or
-J-classpath are provided (as the java command does) and then formalize and
document the ordering.
--
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