-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
40 lines (31 loc) · 834 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
LIB_DIR = File.join File.dirname(__FILE__), 'lib'
$LOAD_PATH << LIB_DIR
require 'rake/clean'
require 'ant'
JAVA_CLASSES_DIR = 'build/classes'
CLEAN.include '**/*~', 'samples/java_build/*', 'build/*'
task :default => :compile do
puts "default_task executing"
end
task :compile => :setup do
puts "compile_task executing"
ant.javac :srcdir => 'src', :destdir => JAVA_CLASSES_DIR do
classpath do
pathelement :location => File.join(Ant::ANT_HOME, 'lib', 'ant.jar')
pathelement :location => File.join(LIB_DIR, 'jruby-complete.jar')
end
end
end
task :crazy do
ant 'call-rakefile'
end
task :ant_import do
ant_import
end
task :ant_import_ant_default => [:ant_import, :ant_default] do
puts "Just executed ant's default"
end
task :setup do
puts "setup_task_executing"
mkdir_p JAVA_CLASSES_DIR
end