Question: I want to build an ant script that does exactly the same compilation actions on a Flash Builder 4 (Gumbo) project as the `Project->Export Release Build...` menu item does. My ant-fu is reasonably strong, that's not the issue, but rather I'm not sure exactly what that entry is doing.

Some details:

* I'll be using the 3.x SDK (say, 3.2 for the sake of specificity) to build this.
* I'll be building on a Mac, and I can happily use ant, make, or some weird shell script stuff if that's the way you roll.
* Any useful optimizations you can suggest will be welcome.
* The project contains a few assets, MXML and actionscript source, and a couple of .swcs that are built into the project (not RSL'd)

Can someone provide an ant build.xml or makefle that they use to build a release .swf file from a similar Flex project?

Answer: 
One quick way to know the compiler options is to add this tag into your compiler options:

-dump-config your/drive/to/store/the/xmlfile.xml

This will output the entire ant compiler options and you can copy off the parts you want to keep.
HellFire Compiler Daemon (<http://bytecode-workshop.com>/) can generate build.xml directly from the compiler calls made by Flex/Flash Builder. That means your ant script produces SWCs and SWFs based on the exact same set of compiler settings that you set in Flex/Flash Builder.

Also, check out this blog:

<http://stopcoding.wordpress.com/2010/01/15/ant-tasks-for-hfcd-now-available-2/>