Sha256: 36673ba0f2e4fccfd618d44f21916b77da4b12f84848fbd73a769a596709a78c

Contents?: true

Size: 1.06 KB

Versions: 11

Compression:

Stored size: 1.06 KB

Contents

# this will use the latest version of restfulx gem
require 'restfulx/tasks'

TEST_APP_NAME = 'TestApp.mxml'

namespace :air do
  desc "Build and run the AIR application"
  task :run => ["rx:air:build", "rx:air:run"]
end

namespace :flex do
  desc "Test flex application"
  task :test => ["rx:test:build", "rx:test:run"]
  
  desc "Build flex application"
  task :build do
    libs = [] # you can add libraries that are not in lib folder here
    compile_application(:destination => 'bin-debug', :opts => "-library-path+=#{libs.join(',')}")  
  end
end

namespace :rx do 
  namespace :test do
    desc "Build flex test swf file"
    task :build do
      libs = Dir.glob(File.join(APP_ROOT, 'lib', '*.swc'))
      #libs << 'foobar' # you can add libraries that not in lib folder here
      
      compile_application(:application => TEST_APP_NAME, :destination => 'bin-debug', 
        :opts => "+configname=air -library-path+=#{libs.join(',')}")
    end
    
    desc "Run flex test application"
    task :run do
      run_air_application(:application => TEST_APP_NAME)
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
captproton-restfulx-1.2.3 app_generators/rx_app/templates/default_tasks.rake
dima-restfulx-1.2.2 app_generators/rx_app/templates/default_tasks.rake
dima-restfulx-1.2.3 app_generators/rx_app/templates/default_tasks.rake
dima-restfulx-1.2.4 app_generators/rx_app/templates/default_tasks.rake
rlmattax-restfulx-1.2.4.1 app_generators/rx_app/templates/default_tasks.rake
restfulx-1.3.1 app_generators/rx_app/templates/default_tasks.rake
restfulx-1.3.0 app_generators/rx_app/templates/default_tasks.rake
restfulx-1.2.5 app_generators/rx_app/templates/default_tasks.rake
restfulx-1.2.3 app_generators/rx_app/templates/default_tasks.rake
restfulx-1.2.4 app_generators/rx_app/templates/default_tasks.rake
restfulx-1.2.2 app_generators/rx_app/templates/default_tasks.rake