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

jruby-complete can run -S rake spec:jruby or any other rspec via rake #2968

Closed
mkristian opened this Issue May 21, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@mkristian
Member

mkristian commented May 21, 2015

setup jruby from git like this

mvn clean install -Pbootstrap,complete

and then execute

$ GEM_PATH=lib/ruby/gems/shared java -jar maven/jruby-complete/target/jruby-complete-9.0.0.0-SNAPSHOT.jar -S rake spec:jruby
uri:classloader:/META-INF/jruby.home/bin/jruby -X-C -S rspec spec/jruby/array_spec.rb spec/jruby/compat_spec.rb spec/jruby/math_spec.rb spec/jruby/symbol_spec.rb
uri:classloader:/META-INF/jruby.home/bin/jruby -X-C -S rspec spec/jruby/array_spec.rb spec/jruby/compat_spec.rb spec/jruby/math_spec.rb spec/jruby/symbol_spec.rb failed

also gem environment shows a "wrong" ruby executable

$ java -jar maven/jruby-complete/target/jruby-complete-9.0.0.0-SNAPSHOT.jar -S gem envRubyGems Environment:
  - RUBYGEMS VERSION: 2.4.6
  - RUBY VERSION: 2.2.2 (2015-05-21 patchlevel 0) [java]
  - INSTALLATION DIRECTORY: uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared
  - RUBY EXECUTABLE: uri:classloader:/META-INF/jruby.home/bin/jruby
  - EXECUTABLE DIRECTORY: uri:classloader:/META-INF/jruby.home/bin
  - SPEC CACHE DIRECTORY: /home/christian/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: uri:classloader:/META-INF/jruby.home/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.8
  - GEM PATHS:
     - uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared
     - /home/christian/.gem/jruby/2.2.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri --env-shebang"
     - "update" => "--no-rdoc --no-ri --env-shebang"
     - "gem" => "--no-ri --no-rdoc"
     - :sources => ["http://localhost:8181/caching/", "http://localhost:8181/hosted/"]
  - REMOTE SOURCES:
     - http://localhost:8181/caching/
     - http://localhost:8181/hosted/
  - SHELL PATH:
     - /usr/local/heroku/bin
     - /home/christian/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /sbin
     - /bin
     - /usr/games
     - /usr/local/games

so basically the executable should be something which can be executed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment