Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packing a runnable jar including rake + rspec can not execute '-S rake spec' #2969

Closed
mkristian opened this issue May 21, 2015 · 1 comment
Closed

Comments

@mkristian
Copy link
Member

@mkristian mkristian commented May 21, 2015

basically the setup is https://github.com/jruby/jruby/blob/master/maven/jruby/src/it/runnable

just exchange "-T" with spec in this line
https://github.com/jruby/jruby/blob/master/maven/jruby/src/it/runnable/pom.xml#L200

this fails first because of #2968 and secondly the current working directory is "uri:classloader://" which the shell spawner can not change the directory to.

maybe it is feasible to use -C uri:classloader:// on the jruby executable in case both condition apply:

  • executable is jruby
  • PWD is uri:classloader://

that is the relevant error message from the above modified test:

[INFO] uri:classloader:/META-INF/jruby.home/bin/jruby -S rspec ./spec/one_spec.rb
[INFO] sh: 1: cd: can't cd to uri:classloader://
[INFO] sh: 1: uri:classloader:/META-INF/jruby.home/bin/jruby: not found
[INFO] uri:classloader:/META-INF/jruby.home/bin/jruby -S rspec ./spec/one_spec.rb failed
@mkristian
Copy link
Member Author

@mkristian mkristian commented Jun 19, 2015

this is fixed with test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.