JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-6591

When running a gem via bundle exec, java options are not passed it.

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      test.rb:

      require 'java'
      java_import 'java.lang.Runtime'
      puts Runtime.getRuntime.maxMemory
      
      patcheng:bundle pcheng$ sh test.sh
      jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S test.rb
      1035468800
      jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S bundle exec ./test.rb
      1035468800
      jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S rake -f test.rb
      1035468800
      rake aborted!
      Don't know how to build task 'default'
      
      (See full trace by running task with --trace)
      jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S bundle exec rake -f test.rb
      (in /Users/pcheng/Downloads/bundle)
      517734400
      rake aborted!
      Don't know how to build task 'default'
      
      (See full trace by running task with --trace)
      

        Issue Links

          Activity

          Hiro Asari made changes -
          Field Original Value New Value
          Description test.rb:
          require 'java'
          java_import 'java.lang.Runtime'
          puts Runtime.getRuntime.maxMemory

          patcheng:bundle pcheng$ sh test.sh
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S test.rb
          1035468800
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S bundle exec ./test.rb
          1035468800
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S rake -f test.rb
          1035468800
          rake aborted!
          Don't know how to build task 'default'

          (See full trace by running task with --trace)
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S bundle exec rake -f test.rb
          (in /Users/pcheng/Downloads/bundle)
          517734400
          rake aborted!
          Don't know how to build task 'default'

          (See full trace by running task with --trace)

          test.rb:
          {noformat}
          require 'java'
          java_import 'java.lang.Runtime'
          puts Runtime.getRuntime.maxMemory
          {noformat}

          {noformat}
          patcheng:bundle pcheng$ sh test.sh
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S test.rb
          1035468800
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S bundle exec ./test.rb
          1035468800
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S rake -f test.rb
          1035468800
          rake aborted!
          Don't know how to build task 'default'

          (See full trace by running task with --trace)
          jruby -J-Xmx1000m -J-XX:MaxPermSize=256m -S bundle exec rake -f test.rb
          (in /Users/pcheng/Downloads/bundle)
          517734400
          rake aborted!
          Don't know how to build task 'default'

          (See full trace by running task with --trace)
          {noformat}
          Hiro Asari made changes -
          Link This issue is related to JRUBY-6603 [ JRUBY-6603 ]
          Hiro Asari made changes -
          Link This issue relates to JRUBY-6607 [ JRUBY-6607 ]
          Hiro Asari made changes -
          Link This issue relates to JRUBY-6607 [ JRUBY-6607 ]

            People

            • Assignee:
              Thomas E Enebo
              Reporter:
              Patrick Cheng
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: