| 1 |
<?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 |
<project name="BetweenAS3" basedir="."> |
|---|
| 3 |
|
|---|
| 4 |
<!-- |
|---|
| 5 |
How to run: |
|---|
| 6 |
|
|---|
| 7 |
$ ant -lib /path/to/flex_sdk/ant/lib/flexTasks.jar target-name |
|---|
| 8 |
|
|---|
| 9 |
Note: Edit build.properties and set your /path/to/flex_sdk to FLEX_HOME. |
|---|
| 10 |
Note: Create output directory before execute ant task. |
|---|
| 11 |
--> |
|---|
| 12 |
|
|---|
| 13 |
<taskdef resource="flexTasks.tasks" classpath="${basedir}/flexTasks/lib/flexTasks.jar" /> |
|---|
| 14 |
<property file="build.properties" /> |
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
<fileset id="src.fp10.fileset" dir="${src.fp10.dir}/"> |
|---|
| 18 |
<include name="**/*.as" /> |
|---|
| 19 |
</fileset> |
|---|
| 20 |
<fileset id="src.fp9.fileset" dir="${src.fp9.dir}/"> |
|---|
| 21 |
<include name="**/*.as" /> |
|---|
| 22 |
</fileset> |
|---|
| 23 |
|
|---|
| 24 |
<pathconvert property="src.fp10.classes" pathsep=" " refid="src.fp10.fileset"> |
|---|
| 25 |
<chainedmapper> |
|---|
| 26 |
<globmapper from="${src.fp10.dir}/*" to="*" handledirsep="yes" /> |
|---|
| 27 |
<packagemapper from="*.as" to="*" /> |
|---|
| 28 |
</chainedmapper> |
|---|
| 29 |
</pathconvert> |
|---|
| 30 |
|
|---|
| 31 |
<pathconvert property="src.fp9.classes" pathsep=" " refid="src.fp9.fileset"> |
|---|
| 32 |
<chainedmapper> |
|---|
| 33 |
<globmapper from="${src.fp9.dir}/*" to="*" handledirsep="yes" /> |
|---|
| 34 |
<packagemapper from="*.as" to="*" /> |
|---|
| 35 |
</chainedmapper> |
|---|
| 36 |
</pathconvert> |
|---|
| 37 |
|
|---|
| 38 |
<target name="clean.swc.fp10"> |
|---|
| 39 |
<delete file="${output.swc.fp10.name}" /> |
|---|
| 40 |
</target> |
|---|
| 41 |
|
|---|
| 42 |
<target name="clean.swc.fp9"> |
|---|
| 43 |
<delete file="${output.swc.fp9.name}" /> |
|---|
| 44 |
</target> |
|---|
| 45 |
|
|---|
| 46 |
<target name="swc.fp10" depends="clean.swc.fp10"> |
|---|
| 47 |
<compc output="${output.swc.fp10.name}" include-classes="${src.fp10.classes}"> |
|---|
| 48 |
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" /> |
|---|
| 49 |
<target-player>10.0.0</target-player> |
|---|
| 50 |
<source-path path-element="${src.fp10.dir}" /> |
|---|
| 51 |
</compc> |
|---|
| 52 |
</target> |
|---|
| 53 |
|
|---|
| 54 |
<target name="swc.fp9" depends="clean.swc.fp9"> |
|---|
| 55 |
<compc output="${output.swc.fp9.name}" include-classes="${src.fp9.classes}"> |
|---|
| 56 |
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" /> |
|---|
| 57 |
<source-path path-element="${src.fp9.dir}" /> |
|---|
| 58 |
</compc> |
|---|
| 59 |
</target> |
|---|
| 60 |
|
|---|
| 61 |
<target name="clean.src.fp10"> |
|---|
| 62 |
<delete file="${output.src.fp10.name}" /> |
|---|
| 63 |
</target> |
|---|
| 64 |
|
|---|
| 65 |
<target name="clean.src.fp9"> |
|---|
| 66 |
<delete file="${output.src.fp9.name}" /> |
|---|
| 67 |
</target> |
|---|
| 68 |
|
|---|
| 69 |
<target name="src.fp10" depends="clean.src.fp10"> |
|---|
| 70 |
<zip destfile="${output.src.fp10.name}"> |
|---|
| 71 |
<fileset refid="src.fp10.fileset" /> |
|---|
| 72 |
</zip> |
|---|
| 73 |
</target> |
|---|
| 74 |
|
|---|
| 75 |
<target name="src.fp9" depends="clean.src.fp9"> |
|---|
| 76 |
<zip destfile="${output.src.fp9.name}"> |
|---|
| 77 |
<fileset refid="src.fp9.fileset" /> |
|---|
| 78 |
</zip> |
|---|
| 79 |
</target> |
|---|
| 80 |
</project> |
|---|