Skip to content
This repository
tree: 5e844a673d
Fetching contributors…

Cannot retrieve contributors at this time

executable file 42 lines (31 sloc) 0.71 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#!/usr/bin/env ruby
require 'rubygems'

if ARGV[0] == 'help'

  require 'jbundler/cli'

  JBundler::Cli.start

else

  ARGV << 'install' if ARGV.size == 0

  if ARGV[0] == 'console'
    require 'irb'
    require 'jbundler/lazy'
    include JBundler::Lazy
  end

  begin
    load Gem.bin_path('bundler', 'bundle')
  rescue Exception
    if ARGV[0] == 'console'
      ARGV.shift
      require 'jbundler'
      if defined? JBUNDLER_CLASSPATH
        warn 'Jarfile dependencies loaded'
      else
        warn 'Could not locate Jarfile'
        
      end
      IRB.start
    end
  end

  if ARGV[0] && ['install', 'update', 'show'].member?(ARGV[0])
    require 'jbundler/cli'

    JBundler::Cli.start
  end

end
Something went wrong with that request. Please try again.