<?xml version="1.0" encoding="UTF-8"?>
<project name="FMS SSAS" default="package">

<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />

<property name="far"
location="C:\Program Files\Macromedia\Flash Media Server 2\tools\far.exe" />

<fileset id="ascFiles" dir="${build}">
  <include name="**/*.asc" />
</fileset>

<target name="init">
  <tstamp />
  <mkdir dir="${build}" />
  <mkdir dir="${dist}" />
</target>

<target name="copy" depends="init">
  <copy todir="${build}">
   <fileset dir="${src}/" />
  </copy>
</target>

<target name="compile" depends="copy">
  <apply executable="${far}" dir="${build}">
   <arg value="-compile" />
   <fileset refid="ascFiles" />
  </apply>
  <delete>
   <fileset dir="${build}" includes="**/*.asc" />
  </delete>
</target>

<target name="package" depends="compile">
  <exec executable="${far}" dir="${build}">
   <arg value="-package" />
   <arg value="-archive" />
   <arg value="${dist}\main.far" />
   <arg value="-files" />
   <arg value="*.ase" />
   <arg value="components\*.ase" />
  </exec>
</target>

</project>

創作者介紹
創作者 shadow 的頭像
shadow

資訊園

shadow 發表在 痞客邦 留言(0) 人氣()