Thanks VELO.

BTW, do you know what could be the possible reasons that I keep
getting the following error when I use mxmlc?

Error: Access of undefined property NativeApplication

                NativeApplication.nativeApplication.idleThreshold =
IDLETIME;

I used the following antrun execution to compile the test code,

                   <execution>
                        <id>flexunit4-test-compile</id>
                        <phase>test-compile</phase>
                        <configuration>
                            <tasks>
                                <property name="FLEX_HOME" value="$
{flex.home}"/>
                                <taskdef resource="flexTasks.tasks"/>
                                <taskdef resource="net/sf/antcontrib/
antlib.xml"
 
classpathref="maven.compile.classpath"/>

                                <!-- Compile TestRunner.mxml as a SWF
-->
                                <mxmlc file="$
{project.build.testSourceDirectory}/TestRunner.mxml"
                                       output="$
{project.build.testOutputDirectory}/TestRunner.swf">
                                    <source-path path-element="$
{project.build.sourceDirectory}"/>
                                    <source-path path-element="$
{project.build.testSourceDirectory}"/>
                                    <load-config filename="$
{config.dir}/configurationClassesCompilerConfig.xml"/>
                                    <compiler.library-path dir="$
{basedir}/target/dependency" append="true">
                                        <include name="*.*"/>
                                    </compiler.library-path>
                                </mxmlc>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>

where target/dependency holds all the dependent swc files. Seems the
error was caused
by swc dependency, but I included all swc dependencies for flex and
air.

Under the hood, flex-mojo also uses mxmlc to compile code, right?

Thanks,

John


On Sep 3, 12:48 pm, Marvin Froeder <[email protected]> wrote:
> There is no skip option for that right now.
>
> VELO
>
> On Thu, Sep 3, 2009 at 1:27 PM, John <[email protected]> wrote:
>
> > Hi,
>
> > Since our project needs to use FlexUnit 4 to test Air applications. I
> > tried to use the antrun maven plugin to call mxmlc task to compile the
> > air test code, but cannot get it working so far because it is really
> > difficult to set up the compiler lib path for air applications.
>
> > I just wonder if I can use flex mojos to compile all test code but not
> > run them after the compilation. Then I can use Maven ant-run plugin to
> > run the tests with FlexUnit 4. Seems flex mojos can compile the test
> > code and just cannot run the FlexUnit 4 test appropriately.
>
> > Any helps are appreciated.
>
> > Thanks,
>
> > John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to