Sha256: 7cc2aa27811bb335b74cdcfeb0b27e31a06dde4b1e9e90b370cec59a04c6bf70

Contents?: true

Size: 727 Bytes

Versions: 6

Compression:

Stored size: 727 Bytes

Contents

# encoding: utf-8

require "java"

module LogStash
end

require "logstash-core_jars"

# local dev setup
classes_dir = File.expand_path("../../../out/production/classes", __FILE__)
resources_dir = File.expand_path("../../../out/production/resources", __FILE__)

if File.directory?(classes_dir) && File.directory?(resources_dir)
  # if in local dev setup, add target to classpath
  $CLASSPATH << classes_dir unless $CLASSPATH.include?(classes_dir)
  $CLASSPATH << resources_dir unless $CLASSPATH.include?(resources_dir)
else
  # otherwise use included jar
  begin
    require "logstash-core/logstash-core.jar"
  rescue Exception => e
    raise("Error loading logstash-core/logstash-core.jar file, cause: #{e.message}")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
logstash-core-6.0.1-java lib/logstash-core/logstash-core.rb
logstash-core-6.0.0-java lib/logstash-core/logstash-core.rb
logstash-core-6.0.0.rc2-java lib/logstash-core/logstash-core.rb
logstash-core-6.0.0.rc1-java lib/logstash-core/logstash-core.rb
logstash-core-6.0.0.beta2-java lib/logstash-core/logstash-core.rb
logstash-core-6.0.0.beta1-java lib/logstash-core/logstash-core.rb