Skip navigation
johnjianfang
Currently Being Moderated

initial content not found

Sep 7, 2009 8:10 AM

Hi,

 

I try to use FlexUnit 4 to test an air application. I use Maven antrun plugin to compile and run test

code since flex-mojos do not support FlexUnit 4 yet.

 

My antrun plugin is as follows,

 

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.3</version>
                <executions>
                    <execution>
                        <id>flexunit4-test-compile</id>
                        <phase>test-compile</phase>
                        <configuration>
                            <tasks>
                                <!-- You can set this directly so mxmlc will work correctly, or set FLEX_HOME as an environment variable and use as below -->
                                <!--property name="FLEX_HOME" location="${env.FLEX_HOME}"/-->
                                <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="${FLEX_HOME}/frameworks/air-config.xml"/>
                                    <compiler.library-path dir="${basedir}/target/dependency" append="true">
                                        <include name="*.*"/>
                                    </compiler.library-path>
                                    <compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
                                    <compiler.headless-server>true</compiler.headless-server>
                                </mxmlc>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>

 

                    <execution>
                        <id>flexunit4-test-run</id>
                        <phase>test</phase>
                        <configuration>
                            <tasks>
                                <!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
                                <!--
                                   Flex-Mojos will update the FlashPlayer trusted cache for you automagically so you don't have to have flexunit do so.
                                   Also haltonfailure should be marked true to keep with the convention in Maven that the build fails if tests fail.
                                -->
                                <taskdef resource="flexUnitTasks.tasks"/>

 

                                <exec executable="${flex.home}/bin/adl" failonerror="false" osfamily="unix">
                                    <arg value="${project.build.testOutputDirectory}/TestRunner-app.xml"/>
                                    <arg value="--"/>
                                    <arg value="${project.build.testOutputDirectory}"/>
                                </exec>
                                <exec executable="${flex.home}/bin/adl.exe" failonerror="false" osfamily="windows">
                                    <arg value="${project.build.testOutputDirectory}/TestRunner-app.xml"/>
                                    <arg value="--"/>
                                    <arg value="${project.build.testOutputDirectory}"/>
                                </exec>
                                <!--flexunit swf="${project.build.testOutputDirectory}/TestRunner.swf"
                                          toDir="${project.build.directory}/surefire-reports"
                                          haltonfailure="true"
                                          verbose="true"
                                          localTrusted="false"/-->
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <!-- You will need to manually install all of the artifacts below in your local Maven repository or shared repository if you have one -->
                    <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>flexTasks</artifactId>
                        <version>${flex-sdk.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.flexunit</groupId>
                        <artifactId>anttasks</artifactId>
                        <version>4.0.0</version>
                    </dependency>
                </dependencies>
            </plugin>

 

TestRunner.swf is built at target/test-class and I also have TestRunner-app.xml in the same directory where I have

 

        <content>TestRunner</content>

 

The problem is that when I try to run a test, I keep getting the following error

 

[exec] initial content not found

 

I really appreciate if someone could shred some light on this problem.

 

Thanks,

 

John

 
Replies
  • Currently Being Moderated
    Sep 8, 2009 11:00 AM   in reply to johnjianfang

    @johnjianfang - You bring up a good point for running AIR test cases instead of Flex test cases.  We have to already rework the call to run via the stand-alone FP, so hooking into ADL via config shouldn't be that hard.  Hopefully we can internalize this to the FlexUnit Ant task so there is less work to be done.  Thanks for the idea.

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2010 5:24 PM   in reply to legrosb

    I am getting this error as well. legros, I am on top of you today! haha

     

    I am trying to build a flex unit 4 test runner with the flash builder 4, and it looks like my runner builds properly, it just crashes when trying to run.

     

    I am building a mx:application though. I think I just need to switch to WindowedApplication.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2010 5:22 PM   in reply to johnjianfang

    Hi there,

     

    I'm getting the same error message with my Ant script. I was formerly trying to use the flexunit task, but got nowhere - it kept failing with the message "Error launching the test runner ... Caused by: Could not create application descriptor." (Why is it trying to create one, anyway? There already is one!)

     

    So I switched to using exec to run the flexunit tests instead. Works OK, except I can't figure out how to generate test reports. When I try to generate test reports, I get that same message, "[exec] initial content not found". Here's my build script:

     

    <?xml version="1.0" encoding="utf-8"?>
    <project default="all">
        <property name="FLEX_HOME" value="C:/Program Files/Adobe/Flex Builder 3/sdks/3.2.0" />
        <property name="APP_ROOT" value="${basedir}" />
        <property name="src.dir" value="${APP_ROOT}/src" />
        <property name="lib.dir" value="${APP_ROOT}/libs" />
        <property name="output.dir" value="${APP_ROOT}" />
        <property name="reports.dir" value="${basedir}/unit_test_reports" />
        <property name="reports.data.dir" value="${reports.dir}/xml" />
        <taskdef resource="flexTasks.tasks" classpath="${lib.dir}/flexTasks.jar" />
        <taskdef resource="flexUnitTasks.tasks" classpath="${lib.dir}/flexUnitTasks-4.1.0-beta3.75.jar" />

        <target name="clean-swf">
            <delete>
                <fileset dir="${output.dir}" includes="acdc.swf" />
            </delete>
        </target>
       
        <target name="clean-installer">
            <delete>
                <fileset dir="${output.dir}" includes="acdc.air" />
            </delete>
        </target>
               
        <target name="build-swf" depends="clean-swf">
            <mxmlc
                fork="true"
                maxmemory="512m"
                file="${src.dir}/acdc.mxml"
                output="${output.dir}/acdc.swf"
                actionscript-file-encoding="UTF-8"
                keep-generated-actionscript="true"
                warnings="false"
                configname="air"
                locale="en_US">

                <source-path path-element="${src.dir}" />
                <source-path path-element="${APP_ROOT}/locale/{locale}" />

                <library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
                    <include name="*.swc" />
                </library-path>
                <library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
                    <include name="*.swc" />
                </library-path>
                <library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
                    <include name="{locale}" />
                </library-path>
                <library-path dir="${lib.dir}" append="true">
                    <include name="*.swc" />
                </library-path>
               
                <verbose-stacktraces>true</verbose-stacktraces>
            </mxmlc>
        </target>
       
        <target name="compile-test" depends="build-swf">
            <mxmlc
                fork="true"
                maxmemory="512m"
                file="${src.dir}/acdcunittest.mxml"
                output="${src.dir}/acdcunittest.swf"
                actionscript-file-encoding="UTF-8"
                warnings="false"
                configname="air"
                locale="en_US">
               
                <source-path path-element="${src.dir}" />
                <source-path path-element="${APP_ROOT}/locale/{locale}" />
               
                <library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
                    <include name="*.swc" />
                </library-path>
                <library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
                    <include name="*.swc" />
                </library-path>
                <library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
                    <include name="{locale}" />
                </library-path>
                <library-path dir="${lib.dir}" append="true">
                    <include name="*.swc" />
                </library-path>
               
                <verbose-stacktraces>true</verbose-stacktraces>           
            </mxmlc>
        </target>
       
        <target name="test-flex" depends="compile-test">
            <!--<flexunit
                swf="${src.dir}/acdcunittest.swf"
                player="air"
                workingDir="${output.dir}"
                toDir="${reports.data.dir}"
                haltonfailure="false"
                failureproperty="test.failures"
                verbose="true" />--> if I try to use this instead of exec, I get an error message "could not create application descriptor"

           
            <exec executable="${FLEX_HOME}/bin/adl.exe" failonerror="true">
                <arg value="${src.dir}/acdcunittest-app.xml"/>
                <!--<arg value="-- ${reports.data.dir}" />--> if I uncomment this line, I get the error message "[exec] initial content not found"
            </exec>
        </target>

        <target name="build-installer" depends="clean-installer, build-swf, test-flex">
            <exec executable="${FLEX_HOME}/bin/adt.bat" failonerror="true">
                <arg line="-package" />
                <arg line="-storetype pkcs12" />
                <arg line="-keystore ${APP_ROOT}/aplia.air.cert.p12" />
                <arg line="-storepass aplia123!" />
                <arg line="${output.dir}/acdc.air" />
                <arg line="${src.dir}/acdc-app-build.xml" />
                <arg line="${output.dir}/acdc.swf" />
                <arg line="-C ${src.dir} aplia assets config lib" />
            </exec>
        </target>

        <target name="all" depends="build-installer"></target>
    </project>


     

    I've looked at the other posts in this thread already... my app descriptor for the unit test app, acdcunittest-app.xml, *does* explicitly say

     

         <content>acdcunittest.swf</content>

     

    with the .swf extension, and my unit test app is an mx:WindowedApplication rather than mx:Application.

     

    Can anyone help me figure out either a) how to successfully use the flexunit task, or b) how to properly translate my flexunit attributes into exec and generate test reports?

     

    I also can't figure out how to get the test unit runner to close when it's done running the tests, so that the build can finish.

     

    Any advice would be greatly appreciated!

     

    Thanks,

    Helen

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2010 8:16 PM   in reply to htompkins78

    @Helen - No worries, we can find a fix for you, and I think it'll be fairly painless.  What version of FlexUnit are you using?  If it's 4.0.0, then the latest beta version of 4.1 should do the trick.

     

    For 4.1-beta1 I added better ADL support for Flex 3 vs Flex 4; with up to beta3 I've also fixed a few hiccups along the way.  Based on that support and the latest fixes, I think the first snippet using the flexunit Ant task you have should work.  Keep in mind, the flexunit Ant task takes the responsibility of generating the descriptor xml, executing the ADL process, and killing the ADL process.  Although you have created your own application descriptor xml, the flexunit Ant task does not support using custom descriptors yet; to see the sample of the descriptor being used, look in the working directory (this one is generated from a template by the task).  As far as calling ADL directly, I'm unsure why you're getting the error you are, but I'd suggest against calling ADL directly since you'll have to write something in your build to kill the ADL process so the build finishes.

     

    If you are using 4.1-beta3, please post the output of your Ant build script and the content of your descriptor file in the working directory.  This may be a bug if this is the case.  Let me know what you can find out.

     

    -Brian

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2010 12:12 PM   in reply to legrosb

    Hi Brian,

     

    Thanks for your reply!

     

    I've tried building with every version of Ant and FlexUnit I could find, including the latest beta... same problem every time. Though I haven't tried using a different Flex SDK - my project uses 3.2.0. Could that be causing problems? All the FlexUnit versions I can find are for 3.5 or later.

     

    Below is the full console output from my build script (using the flexunit task rather than exec). As for the descriptor file, if you mean the one created by the FlexUnit task, I'm afraid I have nothing to post... since the error is that the task isn't able to create it in the first place. (Or if it is being created, it sure isn't anywhere I can find it - see below for screenshot of project contents.) I can post the descriptor I wrote myself if that will be of any use - just let me know.

     

    Thank you so much for your help!

     

    Helen

     

     

    -------------- CONSOLE OUTPUT ---------------

    Apache Ant version 1.7.1 compiled on June 27 2008
    Buildfile: C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\build.xml
    parsing buildfile C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\build.xml with URI = file:/C:/build/dev/helen_ant/apps/flex_dev/flex/acdc/build.xml
    Project base dir set to: C:\build\dev\helen_ant\apps\flex_dev\flex\acdc
    [antlib:org.apache.tools.ant] Could not load
    definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
    Build sequence for target(s) `all' is [clean-swf, build-swf, clean-installer, compile-test, test-flex, build-installer, all]
    Complete build sequence is [clean-swf, build-swf, clean-installer, compile-test, test-flex, build-installer, all, test-reports-flex, final-clean, ]
    clean-swf:
       [delete] Deleting C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\acdc.swf
    build-swf:
    dropping C:\C from path as it doesn't exist
    dropping C:\C from path as it doesn't exist
        [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\air-config.xml
        [mxmlc] C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\acdc.swf (2391282 bytes)
    clean-installer:
    compile-test:
    dropping C:\C from path as it doesn't exist
    dropping C:\C from path as it doesn't exist
        [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\air-config.xml
        [mxmlc] C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\src\acdcunittest.swf (2744014 bytes)
    test-flex:
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for the test run:
    [flexunit]     FLEX_HOME: [C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0]
    [flexunit]     haltonfailure: [false]
    [flexunit]     headless: [false]
    [flexunit]     display: [99]
    [flexunit]     localTrusted: [true]
    [flexunit]     player: [air]
    [flexunit]     port: [1024]
    [flexunit]     swf: [C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\src\acdcunittest.swf]
    [flexunit]     timeout: [60000ms]
    [flexunit]     toDir: [C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\unit_test_reports\xml ]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] OS: [Windows]
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Launching player:
         [null] Executing 'C:\Program Files\Adobe\Flex Builder 3\jre\bin\java.exe' with arguments:
         [null] '-jar'
         [null] 'C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\lib\adt.jar'
         [null] '-version'
         [null]
         [null] The ' characters around the executable and arguments are
         [null] not part of the command.
         [null] Output redirected to property: AIR_VERSION
    [flexunit] Found AIR version: 2.0

    BUILD FAILED
    C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\build.xml:97: Error launching the test runner.
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41)
        at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.execute Targets(EclipseDefaultExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(Internal AntRunner.java:423)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(Interna lAntRunner.java:137)
    Caused by: Error launching the test runner.
        at org.flexunit.ant.tasks.TestRun.launchTestSuite(Unknown Source)
        ... 18 more
    Caused by: Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicatio nDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.launch(Unknown Source)
        at org.flexunit.ant.launcher.FlexUnitLauncher.runTests(Unknown Source)
        ... 19 more
    --- Nested Exception ---
    Error launching the test runner.
        at org.flexunit.ant.tasks.TestRun.launchTestSuite(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41)
        at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.execute Targets(EclipseDefaultExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(Internal AntRunner.java:423)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(Interna lAntRunner.java:137)
    Caused by: Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicatio nDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.launch(Unknown Source)
        at org.flexunit.ant.launcher.FlexUnitLauncher.runTests(Unknown Source)
        ... 19 more
    --- Nested Exception ---
    Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicatio nDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.launch(Unknown Source)
        at org.flexunit.ant.launcher.FlexUnitLauncher.runTests(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.launchTestSuite(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41)
        at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.execute Targets(EclipseDefaultExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(Internal AntRunner.java:423)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(Interna lAntRunner.java:137)

    Total time: 1 minute 31 seconds

     

     

    project.png

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2010 12:46 PM   in reply to htompkins78

    @Helen - Yep, looks like you found a bug.  I didn't realize you can use SDK 3.2 with AIR 2.0, so I'll have to recreate that in my tests.  I'll get on a fix this week(end) and let you know what I find.  Can you open a JIRA bug for us so you can track the progress?  Thanks.

     

    -Brian

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2010 1:02 PM   in reply to legrosb

    @Brian - I've opened a JIRA bug; it can be found here:

    http://bugs.adobe.com/jira/browse/FXU-128

     

    In the meantime, I'll see if I can work around my problem by reverting to an earlier version of AIR.

     

    Keep me posted... thanks a lot!

     

    ~Helen

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 15, 2010 9:01 PM   in reply to htompkins78

    @Helen - Ok, I dug in a little bit more on this issue, sorry for the delay.  The only things which can cause the exception to be thrown that you're seeing is the creation of the auto-gen application descriptor by the flexunit Ant task.  Sounds like common sense, but due to the requirement to use a relative path in the app descriptor for the value of "content", the Ant task attempts to write out the auto-gen app descriptor into the directory in which the SWF, provided in the "swf" attribute to the task, exists.  In your case, based on what I'm reading from your build script, it's trying to write the app descriptor to your src directory.

     

    I'm not sure why it's being denied the right to write out the file, but I'd like to suggest a slight tweak to your build which could help better ID the problem.  Ideally, build artifacts shouldn't go into the directories containing your source code, rather being written out to folders which can easily be deleted and rebuilt when the build is run; this will allow your source code folders to go unchanged for use by multiple plugins/tools/etc that may use those directories to perform their work.  FlashBuilder uses "bin-debug" to accomplish this separation, usually I use "target" or "bin" for my Ant scripts.  Could you try tweaking your build script to dump the test SWF into a "bin" directory and then point the flexunit Ant task at the new SWF location?  At that point the Ant task should attempt to output the auto-gen template descriptor in the "bin" directory with your test SWF.  This will help me rule out any strange permission errors that may be occurring since your build script will create "bin" and have ownership rights to it.  May sound silly, but I just want to try and rule this edge case out.

     

    I still have yet to test the Flex 3.2 and AIR 2.0 combo, but the more I look at the problem, the less it seems related to the mixing and matching.  Let me know how it goes.

     

    -Brian

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2010 8:19 PM   in reply to htompkins78

    @Helen - Derek Santos found a bug with the AdlCommand in the Ant task that was using "\" on Windows instead of "/" to reference the ADL descriptor template in the Ant task JAR.  This is what is most likely causing your issue since I'm guessing your build probably has write access to your source directory to put SWCs into it.  I'm putting the fix into fork tonight and it should work its way into RC1 this weekend.

     

    -Brian

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 27, 2012 11:03 AM   in reply to johnjianfang

    In my case I had modified the app's XML file's initialWindow.content element to point to my swf for ant build. Reset it to blank to make it work.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points