[ 
https://issues.apache.org/jira/browse/FLEX-35303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15999096#comment-15999096
 ] 

Josh Tynjala commented on FLEX-35303:
-------------------------------------

Yeah, I could see that being a possible solution. I think we would also need 
special SWF-only air-config.xml and airmobile-config.xml files too.

We could have the SWF-only compilers ignore compiler.targets, if having 
multiple extra config files seems too unwieldy.

> Error: unknown configuration variable 'compiler.targets' when using bin/mxmlc 
> and bin/compc
> -------------------------------------------------------------------------------------------
>
>                 Key: FLEX-35303
>                 URL: https://issues.apache.org/jira/browse/FLEX-35303
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon
>    Affects Versions: Apache FalconJX 0.8.0
>            Reporter: Josh Tynjala
>
> flex-config.xml includes defaults for compiler.targets. compiler.targets is 
> defined in org.apache.flex.compiler.clients.JSConfiguration. I suspect that 
> bin/mxmlc and bin/compc use org.apache.flex.compiler.config.Configuration 
> instead, since they're for SWFs.
> I'm guessing that compiler.targets should probably be defined in 
> Configuration instead of JSConfiguration.
> This also affects the VSCode extension. For SWF projects in VSCode, I use 
> Configuration for compiler options. I've (temporarily) switched to 
> JSConfiguration instead because I was getting the same error. However, I'd 
> prefer to continue using Configuration so that VSCode will display proper 
> compiler errors someone tries to use JS-specific options (like source-map, 
> for instance) with a SWF project.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to