Created
November 2, 2011 12:52
-
-
Save devboy/1333544 to your computer and use it in GitHub Desktop.
Use robotlegs2 and swiftsuspenders2 snapshot builds with buildr-as3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "buildr/as3" | |
repositories.remote << "http://artifacts.devboy.org" << "http://repo2.maven.org/maven2" | |
THIS_VERSION = "0.0.1-SNAPSHOT" | |
define "MyProject" do | |
project.group = "project" | |
project.version = THIS_VERSION | |
compile.using( :mxmlc, :flexsdk => flexsdk, :main => _(:src,:main,:as3,"MyProject.as") ) | |
version = "2.0.0b1-SNAPSHOT" | |
compile.with "org.robotlegs:robotlegs-framework:swc:"+version, | |
"org.swiftsuspenders:SwiftSuspenders:swc:"+version | |
package :swf | |
end | |
def flexsdk | |
@flexsdk ||= begin | |
flexsdk = FlexSDK.new("4.5.1.21328") | |
flexsdk.default_options << "-keep-as3-metadata+=Inject" << "-keep-as3-metadata+=PostConstruct" | |
flexsdk | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//put this class in src/main/as3 | |
package | |
{ | |
import flash.display.Sprite; | |
import org.robotlegs.v2.core.impl.Context; | |
import org.swiftsuspenders.ReflectorBase; | |
[SWF(width="1024",height="768")] | |
public class MyProject extends Sprite | |
{ | |
public function MyProject() | |
{ | |
// check the classes are available | |
var context: Context = new Context(); | |
var reflector: ReflectorBase = new ReflectorBase(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment