Sha256: 7253ab4bcb832570a465aa72cda7da27e70be3b995d3470594da9f307180655b
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
require_relative 'lib/joonsrenderer/version' def create_manifest title = 'Implementation-Title: joonsrenderer (java extension for joonsrenderer gem)' version = format('Implementation-Version: %s', JoonsRenderer::VERSION) file = File.open('MANIFEST.MF', 'w') do |f| f.puts(title) f.puts(version) f.puts('Class-Path: janino-3.0.12.jar commons-compiler-3.0.12.jar') end end task default: [:init, :compile, :install, :gem] desc 'Create Manifest' task :init do create_manifest end desc 'Build gem' task :gem => [:install, :compile] do sh "gem build joonsrenderer.gemspec" end desc 'Compile' task :compile => [:init] do sh "mvn package" end desc 'Install' task :install do sh "mvn dependency:copy" sh "mv target/joonsrenderer.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joonsrenderer-1.2.0-java | Rakefile |