Unresolved compile time constant from Flex configuration file
Hi,
I have a Flash project and I am using Flex conditional compilation.
Is there a way to enable recognizing these compile constants loaded from Additional compiler configuration file ?
My external compiler conf is loaded as compiler options like this: -load-config+=${PROJECT_DIR}\compiler-config.xml
and it contains
<define>
<name>COMPILER::debug</name>
<value>false</value>
</define>
Thanks,
T.
请先登录再写评论。
Conditional compiler definitions set in custom Flex configuration file will be resolved in code if you specify this config file not via 'Additional compiler options' field, but using 'Additional compiler configuration file' instead. (Field names provided as they are in IntelliJ IDEA 11.1)
I thought of that, but there is no such option in Default Compiler Options For Project.
Is there other solution than put ${PROJECT_DIR}\compiler-config.xml into Additional compiler configuration file for every Module? I have 24 Modules in the Project.
T.
It is possible to configure conditional compiler definitions in the table which is available at any level: project, module and build configuration. No harm if this option will be duplicated in custom config file.
Thanks, that works!