<?xml version="1.0" encoding="UTF-8"?>
<project name="Flex 2 Quick Start" default="init">
<description>
Flex 2 Quick start ant project
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="mxmlc"
location="D:\web\Flex Builder 2 Alpha 1\Flex Framework 2 Alpha 1\bin\mxmlc.exe"/>
<property name="flashPlayer"
location="D:\web\Flex Builder 2 Alpha 1\Player\Version 8.5 alpha 1\Debug\SAFlashPlayer.exe"/>
<property name="mxmlFile" value=""/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="copy" depends="init">
<copy todir="${build}">
<fileset dir="${src}/"/>
</copy>
</target>
<target name="compile" depends="copy" description="compile the source "
>
<!-- Compile the mxml code from ${src} into ${build} -->
<exec executable="${mxmlc}">
<arg value="-strict"/>
<arg value="-optimize"/>
<arg value="-accessible"/>
<arg value="-coach"/>
<arg value="${build}/${mxmlFile}.mxml"/>
</exec>
</target>
<target name="run" depends="compile" description="open swf file">
<exec executable="${flashPlayer}">
<arg value="${build}/${mxmlFile}.swf"/>
</exec>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
</target>
</project>
<project name="Flex 2 Quick Start" default="init">
</project>