Working with Ant

The new Axdt exports all Flex ant tasks automatically. You can safely omit the taskdef statement.

Axdt also sets two ant variables.

  • ${flex.home} maps to the location of the Flex SDK that is distributed with Axdt
  • ${flex.frameworks} maps to the location of the frameworks folder of the Flex SDK

You can use the Flex ant file wizard to generate a standard ant file for your project. The fastest way is to select the target file (e.g Application.as) and then open the wizard.

The flex ant tasks will automatically look for a ${TARGET_PATH(without as or mxml extension)}-config.xml after all explicitly loaded config files and before the ant task options are applied. So you could use this to apply application specific configurations (like background color). This is best practice for sharing compiler configurations between Axdt and Flex Ant builds.

Further reading