lib/airake/tasks/air.rake in airake-0.4.3 vs lib/airake/tasks/air.rake in airake-0.4.4

- old
+ new

@@ -1,11 +1,11 @@ namespace :air do desc "Compile" task :compile => :clean do begin - project = Airake::Project.new + project = Airake::Projects::Air.new fcsh = PatternPark::FCSH.new_from_rake(ENV) fcsh.execute([ project.base_dir, project.amxmlc.compile ]) rescue PatternPark::FCSHConnectError => e puts "Cannot connect to FCSHD (start by running: rake fcsh:start); Continuing compilation..." Airake::Runner.run(project.amxmlc, :compile) @@ -15,22 +15,22 @@ desc "Test" task :test do ENV["AIRAKE_ENV"] = "test" Rake::Task["air:clean"].invoke - test_project = Airake::Project.new + test_project = Airake::Projects::Air.new Airake::Runner.run(test_project.amxmlc, :compile) Airake::Runner.run(test_project.adl, :launch) end desc "Generate certificate" task :certificate do pfx_file = ENV["CERTIFICATE"] unless pfx_file - project = Airake::Project.new + project = Airake::Projects::Air.new pfx_file = project.certificate end if pfx_file.blank? || pfx_file == "path/to/certificate.pfx" print "Certificate file (to create; e.g. cert.pfx): " @@ -45,11 +45,11 @@ end puts "Will generate a certificate file at: #{pfx_file}" - project = Airake::Project.new + project = Airake::Projects::Air.new optionals = {} print "Specify common name (e.g. SelfSign, ADigitalID) [SelfSign]: " cn = STDIN.gets.chomp! cn = "SelfSign" if cn.blank? @@ -77,11 +77,11 @@ # Check certificate configuration for package task task :check_certificate do pfx_file = ENV["CERTIFICATE"] unless pfx_file - project = Airake::Project.new + project = Airake::Projects::Air.new pfx_file = project.certificate end if pfx_file.blank? || pfx_file == "path/to/certificate.pfx" raise <<-EOS @@ -107,11 +107,11 @@ end end desc "Package only" task :package_only do - project = Airake::Project.new + project = Airake::Projects::Air.new Airake::Runner.run(project.adt, :package) end task :set_debug do ENV["DEBUG"] = "true" unless ENV.has_key?("DEBUG") @@ -120,11 +120,11 @@ desc "Launch ADL" task :adl => [ :set_debug, :compile, :adl_only ] do; end desc "Launch ADL only" task :adl_only do - project = Airake::Project.new + project = Airake::Projects::Air.new Airake::Runner.run(project.adl, :launch) end desc "Compile component" task :acompc do @@ -162,16 +162,16 @@ Airake::Runner.run(Airake::Commands::Acompc.new(:source_path => source_path, :include_packages => packages.split(" "), :output_path => output_path), :compile) end desc "Docs" task :docs do - project = Airake::Project.new + project = Airake::Projects::Air.new Airake::Runner.run(project.asdoc, :generate) end desc "Clean" task :clean do - project = Airake::Project.new + project = Airake::Projects::Air.new project.clean end end \ No newline at end of file