-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
48 lines (40 loc) · 919 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# frozen_string_literal: false
require_relative 'lib/pixelflow/version'
def create_manifest
title = 'Implementation-Title: rpextras (java extension for propane)'
version = format('Implementation-Version: %s', PixelFlow::VERSION)
File.open('MANIFEST.MF', 'w') do |f|
f.puts(title)
f.puts(version)
f.puts('Class-Path: gluegen-rt-2.3.2.jar jogl-all-2.3.2.jar')
end
end
task default: [:init, :compile, :install, :gem]
desc 'Create Manifest'
task :init do
create_manifest
end
desc 'Install'
task :install do
sh 'mv target/PixelFlow.jar lib'
end
desc 'Gem'
task :gem do
sh 'gem build pixelflow.gemspec'
end
desc 'Document'
task :javadoc do
sh 'mvn javadoc:javadoc'
end
desc 'Compile'
task :compile do
sh 'mvn package'
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