jruby-complete jar not working from directory with spaces
---------------------------------------------------------
Key: JRUBY-5281
URL: http://jira.codehaus.org/browse/JRUBY-5281
Project: JRuby
Issue Type: Bug
Reporter: Jari Bakken
Assignee: Thomas E Enebo
This is a regression. Previous versions of jruby-complete.jar didn't
percent-escape spaces in the paths.
$ pwd
/tmp
$ java -jar jruby-complete.jar -v
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-29 ab3899a) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
$ java -jar jruby-complete.jar -r set -e 'p $LOAD_PATH'
["file:/private/tmp/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8",
"file:/private/tmp/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared",
"file:/private/tmp/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8", "."]
$ mkdir "path with spaces"
$ mv jruby-complete.jar path\ with\ spaces
$ java -jar path\ with\ spaces/jruby-complete.jar -r set -e 'p $LOAD_PATH'
org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- set
$ java -jar path\ with\ spaces/jruby-complete.jar -e 'p $LOAD_PATH'
["file:/private/tmp/path%20with%20spaces/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8",
"file:/private/tmp/path%20with%20spaces/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared",
"file:/private/tmp/path%20with%20spaces/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8",
"."]
$
--
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