forked from enebo/akakamiari
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 648 Bytes
/
Rakefile
File metadata and controls
28 lines (22 loc) · 648 Bytes
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
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 :setup do
puts "setup_task_executing"
mkdir_p JAVA_CLASSES_DIR
end