2 Replies Latest reply on Jul 6, 2010 2:08 PM by REM018

    Ant task to include Halo theme

    REM018

      Hi,

       

      I recently migrated from Flex 3.4 to Flex 4. Everything works fine when I compile the application using Flash Builder 4. But I am having issues making our automated ant builds pick up the Halo theme over the Spark theme.

       

      In FB4, I just used the "Flex Theme" options under Project -> Properties to define the Halo theme as the default theme.Before that I used the -theme compiler argument. Both work fine.

       

      For our ant task, I tried adding:

       

        <compiler.theme dir="${FLEX_HOME}/frameworks" append="false">
                   <include name="/themes/Halo/halo.swc" />
        </compiler.theme>

       


      Unfortunately that does not seem to work and the result still shows the Spark theme. I also tried making "theme" a task attribute and the other options according to Flex 4 docs ( http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html ), but to no avail.

       

      I have very limited experience with ant and would appreciate some input.

       

      Thanks!