Sha256: e46110cf02cc2383033dddc637c706e17d900d5a0c64defe3374babffc199482

Contents?: true

Size: 767 Bytes

Versions: 9

Compression:

Stored size: 767 Bytes

Contents

require_relative 'lib/toxiclibs/version'

def create_manifest
  title =  'Implementation-Title: toxiclibs (java extension for toxicgem)    '        
  version =  format('Implementation-Version: %s', Toxiclibs::VERSION)
  file = File.open('MANIFEST.MF', 'w') do |f|
    f.puts(title)
    f.puts(version)
  end
end

task default: [:init, :compile, :gem]

desc 'Create Manifest'
task :init do
  create_manifest
end

desc 'Build gem'
task :gem do
  sh "gem build toxiclibs.gemspec" 
end

desc 'Compile'
task :compile do
  sh "mvn package"
  sh "mvn dependency:copy"
  sh "mv target/toxiclibs.jar lib"
end

desc 'clean'
task :clean do
  Dir['./**/*.%w{jar gem}'].each do |path|
    puts "Deleting #{path} ..."
    File.delete(path)
  end
  FileUtils.rm_rf('./target')
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
toxiclibs-1.0.0 Rakefile
toxiclibs-0.9.3 Rakefile
toxiclibs-0.9.2 Rakefile
toxiclibs-0.9.1 Rakefile
toxiclibs-0.9.0 Rakefile
toxiclibs-0.8.0 Rakefile
toxiclibs-0.6.0-java Rakefile
toxiclibs-0.5.1-java Rakefile
toxiclibs-0.5.0-java Rakefile