lib/airake/tasks/air.rake in airake-0.2.8 vs lib/airake/tasks/air.rake in airake-0.2.9
- old
+ new
@@ -13,11 +13,11 @@
end
desc "Test"
task :test => :clean do
ENV["DEBUG"] = "true" unless ENV.has_key?("DEBUG")
- test_project = Airake::Project.new_from_rake(ENV, true)
+ test_project = Airake::Project.new_from_rake(ENV, :test)
Airake::Runner.run(test_project.amxmlc, :compile)
Airake::Runner.run(test_project.adl, :launch)
end
desc "Generate certificate"
@@ -133,14 +133,14 @@
end
desc "Clean"
task :clean do
project = Airake::Project.new_from_rake(ENV)
- paths = [ project.swf_path, project.air_path ]
+ paths = project.to_clean
# Test
- test_project = Airake::Project.new_from_rake(ENV, true)
- paths += [ test_project.swf_path ]
+ test_project = Airake::Project.new_from_rake(ENV, :test)
+ paths += project.to_clean
paths.each do |path|
FileUtils.rm(path, :verbose => true) if File.exist?(path)
end
end
\ No newline at end of file