Paul Mignard
Paul Mignard

Reputation: 5934

Flex Builder: How do you run multiple "Export Release Build..."

So, what I have is a Flex application that is comprised of about 20 modules that are loaded at runtime. Each module is it's own project in Flex Builder and what I'd like to do is have some way to create a release build of all of them without having to go to each project and selecting Project->Export Release Build...

How can I do such a thing?

Upvotes: 1

Views: 2235

Answers (1)

marketer
marketer

Reputation: 43737

If you have a complex project it might be worth creating an ant build task. This lets you have very specific control over the build process and parameters.

You can download ant from the website (manual here) . There is a version that's included with eclipse, but I prefer to run it through the command lines.

Flex builder comes with an ant library that defines tasks to build actionscript and mxml files. There's some documentation here

For instance, this is a sample mxmlc task that you can do by running 'ant production-compile' :

<target name="production-compile">
        <mxmlc file="myApp.mxml"
            show-actionscript-warnings="false"
            output="myApp.swf"
            debug="false"
            optimize="true"
            >

            <default-size width="800" height="600"/>
            <default-frame-rate>60</default-frame-rate>
        </mxmlc>
</target>

You can add mxmlc tasks for each of your modules, and this will let you build the whole application with one command.

Upvotes: 4

Related Questions