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

Hays Clark commented on FLEX-35090:
-----------------------------------

[~aharui] I ended up re-writing the entire feature myself, so none of the code 
is the same.  But the code I found online did inspire me to make this fix.  The 
original code I found was back in 2012 and it added support for a 
'compilerConstants' property, but it was limited to adding '-define' and it 
didn't work for String values.  So, I can't give the original author much 
credit other then inspiring me to write a better solution.

> As a User, I would like FlexUnit 4.1.0 to support compiler options so I can 
> easily compile more complicated Flash/Flex projects.
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-35090
>                 URL: https://issues.apache.org/jira/browse/FLEX-35090
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: FlexUnit
>    Affects Versions: FlexUnit 4.1
>            Reporter: Hays Clark
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The FlexUnit Ant task does not support compiler options, yet there are some 
> custom forks online of FlexUnit which have added this support too 4.1.x.  
> Instead of people having to hunt down those fork there should be a 4.1.x 
> release which has this support.  This feature should ideally added to 4.2.x 
> if its does not 'break' any existing functionality.  
> GradleFX both supports a 'additionalCompilerOptions' flag, but most FlexUnit 
> tags are singular.  Thus, 'additionalCompilerOption' seems like a good match.
> {code:title=Example.xml}
>         <!-- Execute FlexUnit tests and publish reports -->
>         <flexunit 
>             workingDir="${bin.loc}"
>             toDir="${report.loc}" 
>             haltonfailure="false" 
>             verbose="true" 
>             localTrusted="true" >
>           <additionalCompilerOption option="-define+=MY_CONST::foo,'BAR'" />
>           
>        </flexunit>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to