flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Dove (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34192) Ability to specify compiler switches/conditional content in mxml
Date Thu, 27 Mar 2014 20:45:18 GMT
Greg Dove created FLEX-34192:

             Summary: Ability to specify compiler switches/conditional content in mxml
                 Key: FLEX-34192
                 URL: https://issues.apache.org/jira/browse/FLEX-34192
             Project: Apache Flex
          Issue Type: Wish
          Components: .Unspecified - Compiler
            Reporter: Greg Dove
            Priority: Minor

When working on a project that has ant build scripts and/or debug versus release code variations,
it is easy to exclude/include different code using compiler switches in actionscript. I have
enountered times when this feature would be useful in mxml also. 
Example (I have no idea whether the fx:Compiler tag makes sense here or not, just including
it as a potential approach for implementation):

<fx:Compiler switch="CONFIG::ide">

the above example would have the CONFIG::ide switch set in the IDE compiler settings and could
be set to false (for example) in an ant build script.

another example could be the inclusion of some live dev info populated via normal mxml bindings
etc in a group over the top of the Main application that is defined in mxml. This could be
compiled in for CONFIG::dev builds but not for CONFIG::release, for example.

Maybe I have missed some other obvious way to do this, but if not, I think it could be an
improvement that would presumably be useful for current swf based flex and flexjs etc.

This message was sent by Atlassian JIRA

View raw message