Flex Ant Support

When you start developing with Flex Builder 2 or 3 you’ll have possibly noticed that there is no build in ant support.

No ant support in Flex Builder

It’s really simple to install this afterwards so let’s go:

In the menu bar click on “Help -> Software Updates -> Find and Install …”:

Flex Software Update Menu

Select “Search for new Features to install” and click “next”.

Only for Flex Builder 2:

Select “The Eclipse Project Updates” and click “Finish”

flex2_update.png

On the next screen you’ll have to select the “Java Development Tools” and click “Next”

flex2_feature-select.png

Only for Flex Builder 3:

Select “Europa Discovery Site” (this could differ on various versions of the flex builder) and click “Finish”

flex3_select_mirror.png

On the next screen you’ll have to select the “Java Development Tools” and click “Next”

flex3_feature.png

Last steps for both:

Accept the License agreement and, after downloading the stuff, click “Install All”. Then restart Flex Builder and you can run a build.xml with ant: “Run as -> Ant build”.

flex_run_as.png