Monday, November 24, 2008

Adding Ant to Flex Builder 4 (Gumbo)

There are good instructions for getting Ant to run in Flex Builder 3 at http://iamjosh.wordpress.com/2008/08/11/adding-ant-to-flex-builder-3/ but I just installed Flex Builder 4 (Adobe MAX Preview version) and things seem to have changed a tiny bit. Here are the steps I followed:

  1. In Flex Builder, go to Help -> Software Updates -> Find and Install...
  2. Select "Search for new features to install" and click Next.
  3. Pick "The Eclipse Project Updates" and click Finish.
  4. In the search results, expand "The Eclipse Project Updates", then expand "Eclipse 3.4.1″.
  5. Select "Eclipse Java Development Tools 3.4.1.r341..." and click "Next".
  6. Accept the license agreement and click "Next".
  7. Click "Finish".
  8. Wait for download...
  9. When prompted for feature verification, select "Install All".
  10. Restart Flex Builder as suggested.

You will now have Ant support installed. All build.xml file will have a little ant icon and if you right-click the file and select "Run as", you will see two Ant options:

  • Ant Build - which also has a keyboard short-cut, but does anyone actually remembers shortcuts like Alt+shift+X,Q ?

  • Ant Build... - which allows you to specify which targets to execute.


Side note: Make sure your Flex workspace don't contain space and Ant everything should work just fine.

0 comments: