-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (31 loc) · 876 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'java'
require 'hoe'
$: << 'lib'
require 'duby'
task :default => :test
Rake::TestTask.new :test do |t|
t.libs << "lib"
t.libs << "../jvmscript/lib"
t.test_files = FileList["test/**/*.rb"]
java.lang.System.set_property("jruby.duby.enabled", "true")
end
# update manifest
files = []
files.concat Dir['bin/*'].to_a
files.concat Dir['lib/**/*.rb'].to_a
files.concat Dir['test/**/*.rb'].to_a
files.concat Dir['examples/**/*.duby'].to_a
files << 'History.txt'
files << 'Manifest.txt'
files << 'README.txt'
files << 'Rakefile'
files << 'javalib/JRubyParser.jar'
File.open('Manifest.txt', 'w') {|f| f.write(files.join("\n"))}
Hoe.spec 'duby' do
developer('Charles Oliver Nutter', '[email protected]')
developer('Ryan Brown', '[email protected]')
extra_deps << ['bitescript', '>= 0.0.4']
end