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 ?

2012-05-02 13h26_42.png

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.

4 comments
Comment actions Permalink

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)

0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

Thanks, that works!

0

Please sign in to leave a comment.