annotate Rakefile @ 0:91ecd24948de

Imported.
author Mikhail Kryshen <mikhail@kryshen.net>
date Sat, 14 Jul 2012 05:46:29 +0400 (2012-07-14)
parents
children fac1b8f35265
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
1 require 'mirah'
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
2 require 'rake/clean'
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
3
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
4 SRC = FileList['src/**/*.mirah']
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
5 CLEAN.include('build/**/*.class')
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
6
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
7 task :default => [:compile]
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
8
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
9 task :compile => SRC do
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
10 Mirah::compile '-d', 'build', *SRC
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
11 end
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
12
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
13 task :run => [:compile] do
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
14 sh 'java -cp build:res net/kryshen/charamega/Ui'
91ecd24948de Imported.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
15 end