Skip to content

Commit

Permalink
White-space changes only
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmanuell committed Apr 20, 2011
1 parent 7fadd8b commit 5a7e2f6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Copy Flex SDK location from environment variable. This can be set manually instead. -->
<property name="FLEX_HOME" value="${env.FLEX_HOME}" />
<property file="build.properties"/>

<taskdef resource="flexUnitTasks.tasks" classpath="${libs.dir}/flexUnitTasks.jar" />

<target name="clean" description="Remove folders generated by the build.">
Expand All @@ -15,28 +15,28 @@
<delete dir="${report.dir}" quiet="true" includeEmptyDirs="true"/>
<delete dir="${docs.dir}" quiet="true" includeEmptyDirs="true"/>
</target>

<target name="swc" depends="clean" description="Compile AS3 code into a SWC.">
<echo>[swc] Building SWC</echo>
<echo>[swc] Using Flex SDK at: ${FLEX_HOME}</echo>
<mkdir dir="${output.dir}"/>

<java jar="${FLEX_HOME}/lib/compc.jar" dir="." fork="true" failonerror="true">
<arg value="+flexlib=${FLEX_HOME}/frameworks" />
<arg value="-incremental=true" />

<arg value="-source-path+=${src.dir}" />

<!-- Include all classes in this path. -->
<arg value="-include-sources=${src.dir}/${package.dir}" />

<!-- Link in classes from swc library (only those used). -->
<!--<arg value="-library-path+=${libs.dir}" />-->

<arg value="-output=${output.swc}" />
</java>
</target>

<target name="test" depends="swc" description="Run unit tests in a Flash Player window.">
<echo>[test] Running unit tests</echo>
<!-- Compile SWF -->
Expand Down Expand Up @@ -66,11 +66,11 @@
<arg line="${tests.swf}"/>
</exec>
</target>

<target name="ci" depends="swc" description="Run unit tests and create JUnit-style reports for continuous integration.">
<echo>[ci] Running unit tests and generating reports</echo>
<mkdir dir="${report.dir}"/>

<!-- Compile SWF -->
<java jar="${FLEX_HOME}/lib/mxmlc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg value="${tests.dir}/${package.dir}/AllTestsCIRunner.as"/>
Expand All @@ -88,7 +88,7 @@
<arg value="-headless-server=true"/>
<arg value="-keep-as3-metadata+=Test,Suite,Before,BeforeClass,After,AfterClass,RunWith,Ignore,Inject"/>
</java>

<!-- Execute test runner SWF and publish reports -->
<flexunit swf="${tests.swf}" toDir="${report.dir}" haltonfailure="false" verbose="true" localTrusted="false" />

Expand All @@ -100,7 +100,7 @@
<report format="frames" todir="${report.dir}/html" />
</junitreport>
</target>

<target name="asdoc" depends="swc" description="Create API docs for ${project.title}">
<echo>[asdoc] Generating ASDOC documentation</echo>
<mkdir dir="${docs.dir}"/>
Expand All @@ -118,5 +118,5 @@
</java>
<echo>ASDOC documentation generated successfully.</echo>
</target>

</project>

0 comments on commit 5a7e2f6

Please sign in to comment.