On 5/7/13 12:50 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote:

>> It will be a lot of work to integrate the compilers into FB.
> 
> Can you give me a basic idea of what is involved?
> 
Not 100% sure, but here's what I think I know:

1) In theory, FB 4.7 should call the SDK's mxmlc when building.
2) However, FB doesn't like new flags being added to that SDK's mxmlc.
3) It appears that FB 4.7 still runs incremental compiles as you type.
4) The incremental compiles do not call mxmlc, they supposedly use a complex
set of classes/APIs which you can find in the SDK's modules folder under
compiler/src/java/flex2/tools/flexbuilder

Other considerations:
A) The biggest usability complaint I've heard so far about FlexJSOverlay is
having to remember to click on the main MXML file before you run the
external tools.  It might be possible to modify our external tools to read
the project's configuration and determine which MXML file to compiler
B) The second biggest usability complaint is that changes you make to your
project configuration aren't picked up by the external tools.  Again, we
could probably modify the external tools to read the project configuration
files.
C) FlashBuilder does support an Ant scripts "builder".  I've never used them
so I don't know if would be better to simply write a tool that generates Ant
scripts so folks can use the Ant builder instead.
D) It is unclear whether we could add a 3rd "builder" to Flash Builder.  And
whether that would be less work or have fewer integration issues than trying
to deal with the incremental compilation API.
E) If you are going to eventually output your project to PhoneGap/Cordova,
you may already have an Android-enhanced version of Eclipse.  Would it be
possible and better to just create a standalone "builder" for Eclipse that
can be plugged into any version of Eclipse?
F) I don't believe there are any new releases of FB planned at this time, so
is FB integration worth it?  Or by the time we get all of this working will
everyone have switched to IntelliJ?
G) And all of the above is just for building SWFs to make sure your app
compiles and to debug as much of your logic in AS as possible with the FB
debugger.  For building the HTML/JS/CSS version, how often should that
compile run?  Should it get tied to "export release build" somehow?  Or
remain an external tool?  Or if we lean more heavily on the Ant Builder,
just another target in the Ant script?  Or do we create a separate Eclipse
Builder for it?


-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to