forked from levsa/jotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (25 loc) · 828 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
require 'rake/clean'
classes = 'classes'
target = 'target'
directory classes
directory target
jotify_jar = File.join(target, 'jotify.jar')
libs = FileList['lib/*.jar'].join(File::PATH_SEPARATOR)
src_files = FileList['src/**/*.java']
CLEAN.include(classes, target)
task :compile => classes do
src_files = FileList['src/**/*.java']
sh "javac", '-target', '1.6', '-d', classes, '-classpath', libs, *src_files
end
desc "run jotify"
task :run => :compile do
sh "java -classpath src:#{classes}:#{libs} de.felixbruns.jotify.gui.JotifyApplication"
end
desc "creates #{jotify_jar}"
task :jar => [:compile, target] do
sh "jar cf #{jotify_jar} -C classes ."
end
desc "runs the gateway application"
task :gateway => [:compile] do
sh "java -classpath src:#{classes}:#{libs} de.felixbruns.jotify.gateway.GatewayApplication"
end