Sha256: 595adc87e5775b48e3acfc59d313156a4a2f2e84a537918a438ce2ba2828a5d6

Contents?: true

Size: 992 Bytes

Versions: 40

Compression:

Stored size: 992 Bytes

Contents

#!/usr/bin/env ruby

require 'neo4j'

if ARGV.length == 0
  puts <<TEXT
A tool for copying jar files needed by the application server, like trinidad
It copies all jar files which has been required (neo4j-community, neo4j-advanced or neo4j-enterprise) to the lib folder of the current directory

  Usage: neo4j-jars <community|advanced|enterprise>

TEXT
exit
end

if ARGV.include?('community')
  require 'neo4j-community' # not really needed
elsif ARGV.include?('advanced')
  require 'neo4j-advanced' # not really needed
elsif ARGV.include?('enterprise')
  require 'neo4j-enterprise' # not really needed
else
  puts "Expected community, advanced, enterprise"
  exit -1
end

lib_dir = File.join(Dir.pwd, 'lib')
raise "Expected a lib folder where to copy the jars file, mkdir #{lib_dir}? " unless File.exist?(lib_dir)

files = $CLASSPATH.find_all{|x| x =~ /\.jar$/}.collect{|y| y.sub('file:', '')}
files.each {|file| FileUtils.cp(file, lib_dir)}

puts "copied #{files.size} files to #{lib_dir}"

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
neo4j-4.0.0 bin/neo4j-jars
neo4j-4.0.0.rc.4 bin/neo4j-jars
neo4j-4.0.0.rc.3 bin/neo4j-jars
neo4j-4.0.0.rc.1 bin/neo4j-jars
neo4j-3.0.4 bin/neo4j-jars
neo4j-3.0.3 bin/neo4j-jars
neo4j-3.0.2 bin/neo4j-jars
neo4j-3.0.1 bin/neo4j-jars
neo4j-3.0.0 bin/neo4j-jars
neo4j-3.0.0.rc.5 bin/neo4j-jars
neo4j-3.0.0.rc.4 bin/neo4j-jars
neo4j-3.0.0.rc.3 bin/neo4j-jars
neo4j-3.0.0.rc.2 bin/neo4j-jars
neo4j-3.0.0.alpha.11 bin/neo4j-jars
neo4j-3.0.0.alpha.10 bin/neo4j-jars
neo4j-3.0.0.alpha.9 bin/neo4j-jars
neo4j-3.0.0.alpha.8 bin/neo4j-jars
neo4j-3.0.0.alpha.7 bin/neo4j-jars
neo4j-3.0.0.alpha.6 bin/neo4j-jars
neo4j-3.0.0.alpha.5 bin/neo4j-jars