gems in a jar are not found if the current directory contains a space
---------------------------------------------------------------------
Key: JRUBY-3596
URL: http://jira.codehaus.org/browse/JRUBY-3596
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Reporter: Trejkaz
Assignee: Thomas E Enebo
First you need some gems in a jar. (
http://blog.nicksieger.com/articles/2009/01/10/jruby-1-1-6-gems-in-a-jar )
In my case I have packaged ci_reporter and builder (the dependencies for
integration with continuous integration software) into jruby-testing-gems.jar.
Copy jruby-complete.jar plus jruby-testing-gems.jar into a new directory which
we will call "C:\With Space", and run this:
{noformat}
C:\With Space>java -jar jruby-complete.jar -rjruby-testing-gems.jar -S jgem list
*** LOCAL GEMS ***
rake (0.8.4)
rspec (1.2.0)
sources (0.0.1)
{noformat}
Now rename the directory to "C:\WithoutSpace", go into that directory and run
it again:
{noformat}
C:\WithoutSpace>java -jar jruby-complete.jar -rjruby-testing-gems.jar -S jgem
list
*** LOCAL GEMS ***
builder (2.1.2)
ci_reporter (1.5.1)
rake (0.8.4)
rspec (1.2.0)
sources (0.0.1)
{noformat}
Something about the directory containing a space makes JRuby suddenly unable to
see jars on the classpath.
--
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