Sha256: 131f35b491da931e7e9a6d53ac65303a94718c90396150e673a8f7c8c4e669c2

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: false
require_relative 'lib/propane/version'

def create_manifest
  title = 'Implementation-Title: rpextras (java extension for propane)'
  version = format('Implementation-Version: %s', Propane::VERSION)
  File.open('MANIFEST.MF', 'w') do |f|
    f.puts(title)
    f.puts(version)
    f.puts('Class-Path: core-3.3.5.jar gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
  end
end

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

desc 'Create Manifest'
task :init do
  create_manifest
end

desc 'Install'
task :install do
  sh 'mvn dependency:copy'
  sh 'mv target/propane.jar lib'
end

desc 'Gem'
task :gem do
  sh 'gem build propane.gemspec'
end

desc 'Document'
task :javadoc do
  sh 'mvn javadoc:javadoc'
end

desc 'Compile'
task :compile do
  sh 'mvn package'
end

desc 'JRuby-Complete'
task :install_complete do
  sh 'cd vendors && rake'
end

desc 'Test'
task :test do
  sh 'jruby test/helper_methods_test.rb'
  # sh 'jruby test/respond_to_test.rb' Skip test on Travis to avoid Headless fail
  sh 'jruby test/create_test.rb'
  sh 'jruby test/math_tool_test.rb'
  sh 'jruby test/deglut_spec_test.rb'
  sh 'jruby test/vecmath_spec_test.rb'
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

4 entries across 4 versions & 1 rubygems

Version Path
propane-2.6.0-java Rakefile
propane-2.5.0-java Rakefile
propane-2.4.0-java Rakefile
propane-2.3.4-java Rakefile