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

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM

 

04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM