[ 
https://issues.apache.org/jira/browse/BUILDR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Derek Wischusen updated BUILDR-64:
----------------------------------

    Attachment: buildr_actionscript.zip
                proj.zip

Hey Guys,

Sorry for not following up on this.  As I mentioned before, I did start working 
on this, but I got pulled away and haven't found time to complete it properly.  
That said, I am attaching the work that I did do, just in case it might be 
useful.

In the attached buildr_actionscript file there is code that does the following.

compiles Flex/AS3 apps (.swf files) using mxmlc
compiles Flex/AS3 libs (.swc files) using compc
compiles AIR apps and AIR libs
generates asdoc fiiles (use buildr asdoc from the command line)
generate the html wrapper fils (use buildr wrapper from the command line)
can launch AIR apps using Actionscript::Commands.adl (see the attached sample 
project)
can launch the Flash debugger using Actionscript::Commands.fdb

In the attached proj.zip file I've included a very simple sample project.

The code is still a little rough, and it needs tests.  I also need to add some 
code for automatically copying asset files from source directory to the build 
directory.

Also, when I was working on this I got bogged down with trying to figure out 
the best way to handle automatically running tests, since the tests need to be 
run in their own Flash app (i.e. they cannot be run via java like the other 
languages that buildr works with).  At the time I was thinking the best 
solution would be to create a precompiled test runner app in AIR.  Then buildr 
would compile the test classes for a given project, launch the AIR test runner, 
and pass the location of the compiled test classes to the test runner via 
command line args.

Anyway, if you guys think there is any value in the attached code, I should 
have some free time over the next few weeks work on it and merge it with 
Shane's code (which looks like it does a better job with handling mixed source 
projects), but I'd like to get some feedback on it first.  

Thanks,

Derek



> Flex 3 Compilation Support
> --------------------------
>
>                 Key: BUILDR-64
>                 URL: https://issues.apache.org/jira/browse/BUILDR-64
>             Project: Buildr
>          Issue Type: New Feature
>          Components: Compilers
>    Affects Versions: 1.3.4
>            Reporter: Shane Witbeck
>            Priority: Minor
>             Fix For: 1.3.4
>
>         Attachments: buildr_actionscript.zip, flex.patch, proj.zip
>
>
> Support Flex 3 compilation

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to