title: How can I replicate the functionality of the Flash Builder's release tool in ant?
body: <p>I want to build an ant script that does exactly the same compilation actions on a Flash Builder 4 (Gumbo) project as the <code>Project-&gt;Export Release Build...</code> 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.</p>
  
  <p>Some details:</p>
  
  <ul>
  <li>I'll be using the 3.x SDK (say, 3.2 for the sake of specificity) to build this.</li>
  <li>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.</li>
  <li>Any useful optimizations you can suggest will be welcome.</li>
  <li>The project contains a few assets, MXML and actionscript source, and a couple of .swcs that are built into the project (not RSL'd)</li>
  </ul>
  
  <p>Can someone provide an ant build.xml or makefle that they use to build a release .swf file from a similar Flex project?</p>