I have an AS3 project making use of compile time constants. This has worked well in FDT and adding compiler arguments like:
-define=CONFIG::buildver,"0.1"
But when trying to replicate this when build with an ant script:
<project name="ProjectName" default="compileMain" basedir=".">
<property file="build.properties" />
<target name="compileMain">
<exec executable="${mxmlc}">
<arg line='-define=CONFIG::testvar,"0.1"' />
<arg line="-source-path '${classesdir}'" />
<arg line="-library-path '${flex3libsdir}'" />
<arg line="-output '${bindir}/TestSwf.swf'" />
<arg line="-file-specs '${classesdir}/Test_Main.as'" />
</exec>
</target>
I get "Error: The initializer for a configuration value must be a compile time constant."
I have tried using -define+=CONFIG, but get the same response.
Does anyone with experience with compile time constants and ant have any suggestions?