Sha256: 0226339f6841067f0fb94a4d6ed3d92f12f52c8fd769babd9fab3dddaf6771a1

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

namespace :avro do
  desc 'build definitions'
  task :build do
    jar_file = File.expand_path("../../../src/avro-tools-1.7.7.jar", __FILE__)
    spec_dir = File.expand_path(".")
    Dir.glob(File.join(spec_dir, "/**/*.avdl")) do |file|
      puts file
      new_file = File.expand_path(File.join(File.dirname(file), "../compiled", File.basename(file, ".avdl")))
      command = "java -jar #{jar_file} idl #{file} #{new_file}.avpr"
      puts command
      `#{command}`
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
service_contract-0.0.5 lib/service_contract/tasks.rb