How to declare compile options as valid symbols in Flex under IntelliJ IDEA?
I've got the following Flex code in an开发者_如何学编程 MXML file:
<mx:Label id="lblVersion" styleName="versionID" bottom="0" right="10" text="Version { BUILD::version }"/>
where the "BUILD::version" is meant to be substituted from symbols defined in compiler options:
-define BUILD::version "'LOCAL'"
The Flex plugin doesn't seem to understand the compiler option usage syntax and flags "BUILD" and "version" as "unresolved variable or type"
Is there a way around this problem?
Thanks!
I got the answer from the IDEA forum:
Symbol definitions ("-define foo::bar" in the FlexBuilder "Additional compiler arguments" should be defined in the "Conditional compilation definitions" field of the IDEA facet (on the Advanced tab).
Conditional compilations definitions ("-define foo::bar") in the "Additional compiler options" field of the IDEA Flex facet are ignored.
精彩评论