Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I automate the building of a Flex component library?
    text
    copied!<p>I would like to build a flex library project automatically instead of the current process, which involves one of our developers compiling it on his machine and then us checking in the resulting .swc file. It's gross.</p> <p>I am coming at this from the perspective of a java developer, so I'm having a hard time getting the hang of the compilation tools provided in the Flex Builder 3 application, but here's what I already have:</p> <ol> <li>I have created an ant file that loads the ant task library correctly, and can therefore execute <code>&lt;mxmlc/&gt;</code> and <code>&lt;compc/&gt;</code> tasks.</li> <li>I have located the source code that I need to build, and know what sort of .swc I want to end up with.</li> </ol> <p>What I want is an ant script that will do the equivalent of these steps:</p> <ol> <li>We build all sources (actionscript and MXML) and assets in the project into an swc file.</li> <li>The library.swf file is extracted and optimized</li> </ol> <p>So far I have this:</p> <pre><code>&lt;target name="compile-component" depends="init"&gt; &lt;compc output="${DEPLOY_DIR}/${SWC_NAME}.swc"&gt; &lt;source-path path-element="${FLEX_HOME}/frameworks"/&gt; &lt;source-path path-element="${SRC_DIR}"/&gt; &lt;/compc&gt; &lt;/target&gt; </code></pre> <p>However, it's not including any content:</p> <pre><code>[compc] Loading configuration file /Applications/Adobe Flex Builder 3/sdks/3.2.0/frameworks/flex-config.xml [compc] Adobe Compc (Flex Component Compiler) [compc] Version 3.2.0 build 3958 [compc] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved. [compc] [compc] Error: nothing was specified to be included in the library [compc] [compc] Use 'compc -help' for information about using the command line. </code></pre> <p>It looks like I need to enumerate every class that I want to include in the library, which is... ludicrous. There must be a better way. How do I do this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload