Skip to content

Instantly share code, notes, and snippets.

View devboy's full-sized avatar

Dominic Graefen devboy

View GitHub Profile
require 'buildr/as3'
define "AdvancedExample" do
define "MyApplication" do
compile.using :mxmlc
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076")
compile.options[:main] = _(:src,:main,:as3) + "/MyApplication.as"
# define the ApparatToolkit to use by version
$ cd path/to/AdvancedExample
$ buildr compile
require 'buildr/as3'
define "AdvancedExample" do
define "MyApplication" do
# use the mxmlc compiler to create a swf
compile.using :mxmlc
# define the FlexSDK to use by version
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076")
# define main-class to use for the compiler
# loads the buildr-as3 extension
require 'buildr/as3'
# defines our project “AdvancedExample”
define "AdvancedExample" do
# defines our module “MyApplication”
define "MyApplication" do
end
AdvancedExample
└── MyApplication
└── buildfile
AdvancedExample
└── MyApplication
   └── src
      └── main
         └── as3
         └── MyApplication.as
Successfully installed buildr-as3-0.2.2
Gems updated: buildr-as3
Installing ri documentation for buildr-as3-0.2.2...
Installing RDoc documentation for buildr-as3-0.2.2...
$ gem update buildr-as3
$ gem install buildr-as3
@devboy
devboy / gist:921681
Created April 15, 2011 13:29
FlexUnit4 output of buildr-as3
Devboys-MacBook-Pro:mxmlc_swf devboy$ buildr test
(in /Users/devboy/Development/Source/Ruby/buildr_as3_test, development)
Testing buildr_as3_test:mxmlc_swf
Compiling buildr_as3_test:mxmlc_swf into /Users/devboy/Development/Source/Ruby/buildr_as3_test/mxmlc_swf/target/bin
Loading configuration file /Users/devboy/.m2/repository/com/adobe/flex/sdk/4.1.0.16076/sdk-4.1.0.16076/frameworks/flex-config.xml
/Users/devboy/Development/Source/Ruby/buildr_as3_test/mxmlc_swf/src/main/as3/Test.as: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.
/Users/devboy/Development/Source/Ruby/buildr_as3_test/mxmlc_swf/target/bin/Test.swf (864 bytes)
[INFO] Apparat -- http://apparat.googlecode.com/
[INFO] Launching tool: Turbo Diesel Sport Injection