PureMVC Architects Lounge

PureMVC Manifold => MultiCore Version => Topic started by: Elephant on February 10, 2011, 11:29:28



Title: Building Module-based PureMVC Multicore Projects with Ant
Post by: Elephant on February 10, 2011, 11:29:28
Are there any examples of building Flex Modules based on PureMVC Multicore on Ant?  I have a project where I'm using PureMVC Multicore for a shell/modules arrangement, with modules loaded and unloaded dynamically in the shell via ModuleManager.getModule(url);

I'm trying to build the project with Ant, but when I try to include a task to build a module, it fails with

Error: The definition of base class Facade was not found.

I'm using the following Ant target to try to build the module:

    <target name="modules">
        <mxmlc 
            file="${project.sourcePath}/${currentModule}.mxml" 
            output="${project.output.binaryPath}/${currentModule}.swf"
            actionscript-file-encoding="UTF-8"
            keep-generated-actionscript="true"
            incremental="true">
            <!-- Get default compiler options. -->
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
 
            <!-- List of path elements that form the roots of ActionScript
            class hierarchies. -->
            <source-path path-element="${FLEX_HOME}/frameworks"/>
 
            <!-- List of SWC files or directories that contain SWC files. -->
            <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                <include name="libs" />
                <include name="src/assets" />
                <include name="../bundles/{locale}" />
            </compiler.library-path>
 
            <!-- Set size of output SWF file. -->
        </mxmlc>
    </target>

Any hints?


Title: Re: Building Module-based PureMVC Multicore Projects with Ant
Post by: meekgeek on February 11, 2011, 10:00:09
How funny just this this yesterday:

Here's an example of what I used:

http://snipplr.com/view/48821/ant-task-for-as-projects-with-flash-builder/

take special notice of "link-report" in mxmlc.  Your mods will need that to optimize.