Sha256: 9a1220c9d86262842e311603db84043b0bc4e7dcb0e051d057e9fa89d25aefeb

Contents?: true

Size: 1.41 KB

Versions: 2

Compression:

Stored size: 1.41 KB

Contents

#!/usr/bin/env ruby
require 'jar_dependencies'
require 'optparse'
options = {}
optparse = OptionParser.new do |opts|
  opts.banner = "Usage: #{File.basename(__FILE__)} [options]"

  opts.separator ''
  opts.separator 'THIS IS A EXPERIMETAL FEATURE !!!'
  opts.separator ''
  opts.separator '* load jars "Jars.lock" from current working directory: `Jars.require_jars_lock!`'
  opts.separator '* classpath features: see `Jars::Classpath'
  opts.separator ''
  opts.separator 'Options:'
  opts.separator ''

  opts.on('-v', '--verbose', 'Output more information') do |t|
    options[:verbose] = t
  end

  opts.on('-d', '--debug', 'Output debug information') do |t|
    options[:debug] = t
  end

  opts.on('-f', '--force', 'Force creation of Jars.lock') do |t|
    options[:force] = t
  end

  opts.on('-t', '--tree', 'Show dependency tree') do |t|
    options[:tree] = t
  end

  opts.on('-u', '--update JAR_COORDINATE', 'Resolves given dependency and use  latest version. JAR_COORDINATE is either artifact_id or group_id:artifact_id') do |u|
    options[:update] = u
  end

  opts.on('--vendor-dir DIRECTORY', 'Vendor directory where to copy the installed jars.', 'add this directory to $LOAD_PATH or set JARS_HOME respectively.') do |dir|
    options[:vendor_dir] = dir
  end

  opts.on('-h', '--help', 'Display this screen') do
    puts opts
    exit
  end
end
optparse.parse!

Jars.lock_down(options[:debug], options[:verbose], options)

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.12/bin/lock_jars
jar-dependencies-0.3.12 bin/lock_jars