Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
August 21, 2017, 01:26:34 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: Building Module-based PureMVC Multicore Projects with Ant  (Read 4376 times)
Elephant
Newbie
*
Posts: 9


View Profile
« on: February 10, 2011, 11:29:28 AM »

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
« Reply #1 on: February 11, 2011, 10:00:09 AM »

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
Jump to: