Skip to content

Instantly share code, notes, and snippets.

View devboy's full-sized avatar

Dominic Graefen devboy

View GitHub Profile
# loads the buildr-as3 extension
require 'buildr/as3'
# defines our project “AdvancedExample”
define "AdvancedExample" do
# defines our module “MyApplication”
define "MyApplication" do
end
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
$ cd path/to/AdvancedExample
$ buildr compile
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
$ buildr clean
$ buildr compile
AdvancedExample
├── MyApplication
│   └── src
│      ├── main
│      │   └── as3
│      │   └── MyApplication.as
│      └── test
│      └── as3
│      ├── MyApplicationTest.as
│      └── TestRunner.mxml
require 'buildr/as3'
# We need these maven repositories to download the flexunit4 and junit files
repositories.remote << "http://artifacts.devboy.org" << "http://repo2.maven.org/maven2"
define "AdvancedExample" do
define "MyApplication" do
compile.using :mxmlc
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076")
$ buildr test
java -jar ~/Development/Libraries/RedTamarin/redtamarin_0.3.1.1049_OSX/asc.jar -AS3 -strict -import ~/Development/Libraries/RedTamarin/redtamarin_0.3.1.1049_OSX/toplevel.abc -import ~/Development/Libraries/RedTamarin/redtamarin_0.3.1.1049_OSX/builtin.abc -import lib/main/as3/avmglue_0.1.0.2305/avmglue.abc src/main/as3/ftask.as