Sha256: 915a708e416a80a2948a5b2f9e9fd18162c2cb306632cb581d24654888090cbd
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
#!/usr/bin/env ruby require 'rubygems' # ensure we use the right version gem 'ruby-maven', '>=3.1.0' if ARGV[0] == 'help' require 'jbundler/cli' JBundler::Cli.start else if ARGV == [] || ARGV.all?{ |a| a.match( /^-/ ) } ARGV.unshift 'install' end if ARGV[0] == 'console' require 'irb' require 'jbundler' require 'jbundler/lazy' include JBundler::Lazy end require 'jbundler/config' config = JBundler::Config.new if ['lock_down', 'install', 'update', 'show', 'console'].member?( ARGV[0] ) begin is_lock_down = ARGV.delete( 'lock_down' ) ARGV.delete( 0 ) if is_lock_down is_vendor = ARGV.delete( '--vendor' ) is_debug = ARGV.delete( '--debug' ) is_verbose = ARGV.delete( '--verbose' ) ARGV.delete( '--skip-vendor' ) ARGV.delete( '--skip-debug' ) ARGV.delete( '--skip-verbose' ) load Gem.bin_path('bundler', 'bundle') ARGV.insert( 0, 'lock_down' ) if is_lock_down ARGV.insert( 1, '--debug' ) if is_debug ARGV.insert( 1, '--vendor' ) if is_vendor ARGV.insert( 1, '--verbose' ) if is_verbose require 'jbundler/cli' JBundler::Cli.start rescue Exception => e 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 else raise e end end else require 'jbundler/cli' JBundler::Cli.start end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jbundler-0.6.1 | bin/jbundle |
jbundler-0.6.0 | bin/jbundle |