Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 14/Dec/12 5:23 PM
Description:

Hi,

I'm pretty new to Jruby but it seems that File.expand_path behaviour is inconsitent when used within a Jar.

I'm trying to create a small project with Jruby Maven and Rack.

How to reproduce:

1) git clone https://github.com/andreacgranata/maven_rack_jruby

2) mvn clean package

3) chmod a+x start.sh ; ./start.sh (The rack server start without problem)

4) java -jar target/target/maven_rack_jruby-1.0.0-SNAPSHOT.jar
(the don't start with message "configuration /some/path/maven_rack_jruby/config.ru not found")

Looking at src/main/ruby/jar-bootstrap.rb the File.expand_path return the wrong path (/some/path/maven_rack_jruby/config.ru) instead of /some/path/maven_rack_jruby/target/maven_rack_jruby-1.0.0-SNAPSHOT.jar!/config.ru

Project: JRuby
Priority: Minor Minor
Reporter: Andrea C. Granata
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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