-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
43 lines (36 loc) · 871 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
begin
require 'ant'
rescue
puts("ERROR: unable to load Ant, make sure Ant is installed, in your PATH and $ANT_HOME is defined properly")
puts("\nerror detail:\n#{$!}")
exit(1)
end
require 'jruby/jrubyc'
desc "compile Java classes"
task :compile do
ant.path 'id' => 'classpath' do
fileset 'dir' => "target/dependency/storm/default"
end
options = {
'srcdir' => "src",
'destdir' => "target/classes",
'classpathref' => 'classpath',
'debug' => "yes",
'includeantruntime' => "no",
'verbose' => false,
'listfiles' => true,
}
ant.javac(options)
end
desc "intall RedStorm"
task :install do
system("bundle exec redstorm install")
end
desc "create RedStorm topology jar"
task :jar do
system("bundle exec redstorm jar lib")
end
desc "initial setup"
task :setup => [:install, :compile, :jar] do
end
task :default => :setup