Ignore:
Timestamp:
08/19/09 19:51:45 (4 years ago)
Author:
zach
Message:
  • Added AIR SDK to build.properties
  • Added FlexUnit GUI (and windowless launch option)
  • Made filepath and file output optional
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/build/build.xml

    r279 r280  
    7777                <exec executable="${amxmlc.exe}" dir="${basedir}"> 
    7878                        <!-- Point to the main class .as file --> 
    79                         <arg line="'${test.dir}/PlayerTestLauncher.as'" /> 
     79                        <arg line="'${test.dir}/PlayerTest.mxml'" /> 
    8080 
    8181                        <!-- Place the built .swf file in the "bin" directory --> 
     
    8888                        <!-- Include the necessary framework libraries in the class path --> 
    8989                        <arg line="-compiler.library-path '${flexsdk.lib.dir}'" /> 
     90                        <arg line="-compiler.library-path '${airsdk.lib.dir}'" /> 
    9091                        <arg line="-compiler.library-path '${flexunit.lib.dir}'" />      
    9192                        <arg line="-compiler.library-path '${lib.dir}'" /> 
     
    9596                        <arg line="-compiler.library-path '${flexsdk.locale.dir}'" /> 
    9697 
     98                        <!-- Enable incremental compilation --> 
     99                        <arg line="-incremental=true" /> 
     100                         
    97101                        <!-- Compile with network sandbox --> 
    98102                        <arg line="-use-network=true" /> 
     
    104108        </target> 
    105109 
    106         <target name="test-unit" depends="check-properties"> 
     110        <target name="test-unit-windowless" depends="check-properties,build-test"> 
     111                <antcall target="test-unit"> 
     112                        <param name="windowless" value="true"/> 
     113                        <param name="outputPath" value="${basedir}/bin-test/output.xml"/> 
     114                </antcall> 
     115        </target> 
     116         
     117        <target name="test-unit" depends="check-properties,build-test"> 
     118                <condition property="windowlessLine" value="-- windowless" else=""> 
     119                        <isset property="windowless" /> 
     120                </condition> 
     121                <condition property="outputLine" value="-- 'outputpath=${outputPath}'" else=""> 
     122                        <isset property="outputPath" /> 
     123                </condition> 
    107124                <exec executable="${airDebugLauncher.exe}"> 
    108125                        <arg line="'${basedir}/bin-test/PlayerTestLauncher-app.xml'" /> 
     126                         
     127                        <!-- Enable windowless run --> 
     128                        <arg line="${windowlessLine}" /> 
     129                         
     130                        <!-- Set output path --> 
     131                        <arg line="${outputLine}" /> 
    109132                </exec> 
    110133        </target> 
Note: See TracChangeset for help on using the changeset viewer.