0 Replies Latest reply on May 18, 2011 10:47 AM by CDGD

    Problem upgrading ANT tasks in FB4.5

    CDGD

      We just updated our projects to SDK4.5, with FB4.5, and all looks good - except that our ANT tasks that worked with SDK4.1 will no longer compile. We use ANT to automate the compilation of a large collection of modules with externalised references to parent applications.

       

      References seem to be missing for IEventDispatcher and IBitmapDrawable - here is a sample:

       

       

      buildSWC:
          [mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\FB45\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\flex-config.xml
          [mxmlc] C:\Program Files (x86)\Adobe\FB45\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\libs\framework.swc(mx.managers:IFocusManagerContainer)
          [mxmlc] Error: Type was not found or was not a compile-time constant: [flash.events]::IEventDispatcher.
          [mxmlc] C:\Program Files (x86)\Adobe\FB45\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\libs\framework.swc(mx.core:IFlexDisplayObject)
          [mxmlc] Error: Type was not found or was not a compile-time constant: [flash.display]::IBitmapDrawable.

       

       

      We changed the location of FLEX_HOME, and copied flexTasks.jar into the same folder as build.xml. AntHome seems to be correct. The following specifies the location of flexTasks.jar

       

      <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />

       

      I'm using Win7 64-bit, but my colleague has the same with her Win7 32-bit