Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Building Module-based PureMVC Multicore Projects with Ant  (Read 10186 times)
Elephant
Newbie
*
Posts: 9


View Profile Email
« 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?
Logged
meekgeek
Full Member
***
Posts: 25


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
Print