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

wenslayer's Avatar

wenslayer

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?

Thanks!

  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 = [
        '-load-config=myconfig.xml'
    ]
    
  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

Generic

? 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

Recent Discussions

24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM
11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM

 

06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM
07 Apr, 2016 07:43 AM
24 Mar, 2016 05:55 PM