forked from headius/cloby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 670 Bytes
/
Rakefile
File metadata and controls
28 lines (22 loc) · 670 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
require 'ant'
directory "pkg/classes"
desc "Clean up build artifacts"
task :clean do
rm_rf "pkg/classes"
rm_rf "lib/cloby_ext.jar"
end
desc "Compile the extension"
task :compile => "pkg/classes" do |t|
ant.javac :srcdir => "src", :destdir => t.prerequisites.first,
:source => "1.5", :target => "1.5", :debug => true,
:classpath => "${java.class.path}:${sun.boot.class.path}:javalib/clojure-1.2.0.jar"
end
desc "Build the jar"
task :jar => :compile do
ant.jar :basedir => "pkg/classes", :destfile => "lib/cloby_ext.jar", :includes => "**/*.class"
end
task :package => :jar
desc "Run the specs"
task :spec => :jar do
ruby "-S", "spec", "spec"
end