-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile
36 lines (31 loc) · 911 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
require "rspec/core/rake_task"
require 'tasks/tools'
require 'tasks/prepare'
include Opaz::Tools
task :default => :spec
RSpec::Core::RakeTask.new do |t|
t.pattern = 'specs/*_spec.rb'
end
desc "Start a console"
task :console do
abort "Please run this task using jrake" unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
ARGV.clear #Avoid passing args to IRB
require 'java'
$CLASSPATH << 'libs'
$LOAD_PATH << 'src'
require 'jVSTwRapper-1.0beta.jar'
require 'jVSTsYstem-1.0beta.jar'
require 'opaz_plug'
require 'irb'
require 'irb/completion'
IRB.start
end
desc "Verify all plugins compile"
task :check do
plugins = Dir[File.dirname(__FILE__) + '/plugins/*'].map { |f| File.basename(f) }
plugins.each do |plugin|
print "#{plugin}: "
command = "rake -f build.rakefile clean compile plugin=#{plugin} > /dev/null 2>&1"
puts system(command) ? "OK" : "FAIL"
end
end