Sha256: a445985d76581bc3a265af99df76f69030402b438d39718009b3da45db082f5d

Contents?: true

Size: 1.43 KB

Versions: 40

Compression:

Stored size: 1.43 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

40 entries across 39 versions & 10 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/jar-dependencies-0.3.11/bin/lock_jars
jar-dependencies-0.3.11 bin/lock_jars
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.10/bin/lock_jars
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.10/bin/lock_jars
jar-dependencies-0.3.10 bin/lock_jars
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/jar-dependencies-0.3.9/bin/lock_jars
jar-dependencies-0.3.9 bin/lock_jars
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/jar-dependencies-0.3.8/bin/lock_jars
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/jar-dependencies-0.3.8/bin/lock_jars
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/jar-dependencies-0.3.8/bin/lock_jars