How to override config file compiler argument -load-config?

wenslayer's Avatar


05 Mar, 2015 12:48 AM

I noticed that GradleFx automatically chooses the config file to use depending on the artifact type (what gets specified in the '-load-config=blah' compiler argument). However, we have a specially crafted config.xml that we would like to use instead, but it's not clear to me how we override that setting. Is it exposed at all? If not, any suggestions on how to work around it?


  1. Support Staff 1 Posted by Yennick Trevels on 05 Mar, 2015 07:20 AM

    Yennick Trevels's Avatar

    it has no dedicated convention property, but you can specify it with the 'additionalCompilerOptions' property:

    additionalCompilerOptions = [
  2. 2 Posted by wenslayer on 05 Mar, 2015 04:11 PM

    wenslayer's Avatar

    Thank you, Yennick. That seems to work, although I notice the compiler options list both the '-load-config+=/path/to/SDK/frameworks/flex-config.xml' followed by my own '-load-config=/path/to/my/config.xml'. I imagine the settings in my config.xml will "win" since they come after (and/or use the '=' instead of '+=').

  3. Support Staff 3 Posted by Yennick Trevels on 05 Mar, 2015 06:26 PM

    Yennick Trevels's Avatar

    indeed, the compiler will use your xml config since you basically override the "load-config" parameter by using "=" and because it comes last.

  4. Yennick Trevels closed this discussion on 05 Mar, 2015 06:26 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac