-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
48 lines (39 loc) · 965 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
44
45
46
47
48
require 'rake'
require 'fileutils'
include FileUtils
task :prepare do
system "lein appengine-prepare"
end
task :ds => [:prepare] do
exec "./appengine-java-sdk-1.3.8/bin/dev_appserver.sh resources/"
end
task :deploy => [:prepare] do
exec "./appengine-java-sdk-1.3.8/bin/appcfg.sh update resources/"
end
task :rollback => [:prepare] do
exec "./appengine-java-sdk-1.3.8/bin/appcfg.sh rollback resources/"
end
task :swank do
exec "lein swank"
end
task :repl do
exec "lein repl"
end
task :clean do
exec "lein clean"
end
task :deps do
rm_f 'appengine-java-sdk-1.3.8.zip'
rm_rf 'appengine-java-sdk-1.3.8'
`wget 'http://googleappengine.googlecode.com/files/appengine-java-sdk-1.3.8.zip'`
`unzip appengine-java-sdk-1.3.8.zip`
rm 'appengine-java-sdk-1.3.8.zip'
exec "lein deps"
end
task :destroy do
rm_f 'appengine-java-sdk-1.3.8.zip'
rm_rf 'appengine-java-sdk-1.3.8'
rm_rf 'classes'
rm_rf 'lib'
rm_rf 'resources/WEB-INF/lib'
end