Sha256: 983313d9f5d3849eb840d0335203a842bc05352349b83dde432908b7f7f1ecbb

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

== Setup

Flex SDK: http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html

To include mxmlc, fcsh, adl and adt (from Flex SDK):
  export PATH="/path/to/flex_sdk_3/bin"
  
Apollo SDK: http://labs.adobe.com/downloads/airsdk.html
(Note: flex 3 beta 1 includes these files already)

To include adl and adt (from Apollo SDK):
  export PATH="/Applications/ApolloSDK/bin:$PATH"
    
== Tasks

  # View all tasks
  rake --tasks 

  # Compiling
  rake air:compile 

  # Running air debug launcher (ADL)
  rake air:adl 
  
  # Start FCSHD (for faster compilation)
  rake air:start_fcshd

  # Stop FCSHD
  rake air:stop_fcsh

  # Restart FCSHD
  rake air:restart_fcshd

  # Running alternate MXML, (the following expects src/Test-app.xml descriptor file)
  rake air:adl MXML=src/Test.mxml

  # Run ADL with debug enabled
  rake air:adl DEBUG=true

  # Testing
  rake air:test

  # Package AIR file
  rake air:package
  
== Adding other tasks

Add tasks to the rakefile, for example:

  # Run ADL for Catalog mxml
  task :catalog do
    ENV["MXML"] = "src/catalog/Catalog.mxml"
    Rake::Task["air:adl"].invoke
  end

== Override default settings for Rakefile

This is experimental. In the Rakefile, specify:

  # Override default settings, this is experimental
  # cwd = File.expand_path(File.dirname(__FILE__))
  #ENV["MXMLC_PATH"] = "mxmlc"
  #ENV["ADT_PATH"] = "adt"
  #ENV["BIN_DIR"] = "#{cwd}/bin"
  #ENV["SRC_DIR"] = "#{cwd}/src"
  #ENV["LIB_DIR"] = "#{cwd}/lib"
  #ENV["TEST_DIR"] = "#{cwd}/test"
  #ENV["APPXML_PATH"] = "#{cwd}/src/MyProject-app.xml"
  #ENV["AIR_PATH"] = "#{cwd}/bin/MyProject.air"
  #ENV["SWF_PATH"] = "#{cwd}/bin/MyProject.swf"
  #ENV["MXMLC_EXTRA_OPTS"] = ...
  #ENV["ADL_EXTRA_OPTS"] = ...
  #ENV["ADT_EXTRA_OPTS"] = ...
  #ENV["MXMLC_COMMAND"] = ...
  #ENV["ADL_COMMAND"] = ...
  #ENV["ADT_COMMAND"] = ...

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
airake-0.1.9 app_generators/airake/templates/README