airake 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/lib/airake/commands/amxmlc.rb +1 -1
- data/lib/airake/tasks/air.rake +16 -2
- data/lib/airake/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -12,7 +12,7 @@ module Airake
|
|
12
12
|
# options:: :amxmlc_path, :amxmlc_extra_opts
|
13
13
|
def initialize(project, options = {})
|
14
14
|
@project = project
|
15
|
-
@path = options[:amxmlc_path] || "
|
15
|
+
@path = options[:amxmlc_path] || "mxmlc +configname=air"
|
16
16
|
@extra_opts = options[:amxmlc_extra_opts]
|
17
17
|
end
|
18
18
|
|
data/lib/airake/tasks/air.rake
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
namespace :air do
|
2
2
|
|
3
3
|
desc "Compile"
|
4
|
-
task :compile do
|
4
|
+
task :compile => :clean do
|
5
5
|
begin
|
6
6
|
project = Airake::Project.new_from_rake(ENV)
|
7
7
|
fcsh = PatternPark::FCSH.new_from_rake(ENV)
|
@@ -13,7 +13,7 @@ namespace :air do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
desc "Test"
|
16
|
-
task :test do
|
16
|
+
task :test => :clean do
|
17
17
|
ENV["DEBUG"] = "true" unless ENV.has_key?("DEBUG")
|
18
18
|
test_project = Airake::Project.new_from_rake(ENV, true)
|
19
19
|
Airake::Runner.run(test_project.amxmlc, :compile)
|
@@ -96,4 +96,18 @@ namespace :air do
|
|
96
96
|
Airake::Runner.run(project.adl, :launch)
|
97
97
|
end
|
98
98
|
|
99
|
+
desc "Clean"
|
100
|
+
task :clean do
|
101
|
+
project = Airake::Project.new_from_rake(ENV)
|
102
|
+
paths = [ project.swf_path, project.air_path ]
|
103
|
+
|
104
|
+
# Test
|
105
|
+
test_project = Airake::Project.new_from_rake(ENV, true)
|
106
|
+
paths += [ test_project.swf_path ]
|
107
|
+
|
108
|
+
paths.each do |path|
|
109
|
+
FileUtils.rm(path, :verbose => true) if File.exist?(path)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
99
113
|
end
|
data/lib/airake/version.rb
CHANGED