#!/usr/bin/env ruby if ARGV[0] == 'help' # ensure we use the right version gem 'ruby-maven', '>=3.3.3' require 'jbundler/cli' JBundler::Cli.start else if ARGV == [] || ARGV.all?{ |a| a.match( /^-/ ) } ARGV.unshift 'install' end if ARGV[0] == 'console' # ensure we use the right version gem 'ruby-maven', '>=3.3.3' require 'irb' require 'jbundler' require 'jbundler/lazy' include JBundler::Lazy ARGV.shift require 'jbundler' if defined? JBUNDLER_CLASSPATH warn 'Jarfile dependencies loaded' else warn 'Could not locate a Jarfile' end if defined? JBUNDLER_CLASSPATH warn 'Jarfile dependencies loaded' else warn 'Could not locate a Jarfile' end IRB.start else # ensure we use the right version gem 'ruby-maven', '>=3.3.3' require 'jbundler/cli' JBundler::Cli.start end end