<?xml version="1.0" standalone="yes"?>
<project name="flump" default="dist" basedir=".">
  <property name="asrc.dir" location="src/main/as"/>
  <property name="deploy.dir" location="dist"/>

  <property name="ooo-build.vers" value="2.5"/>
  <ant antfile="etc/bootstrap.xml"/>
  <import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>

  <target name="clean" description="Removes all generated files and directories">
    <delete dir="${deploy.dir}"/>
  </target>

  <target name="dist" depends="-init-ooo" description="Builds the library (.swc file)">
    <mkdir dir="${deploy.dir}"/>
    <mavendep pom="pom.xml" pathProp="aslib.path"/>
    <maventaskdef groupId="com.threerings.ant" artifactId="actionscript" version="1.0"/>
    <amxmlc srcdir="${asrc.dir}" libpath="${aslib.path}"
      dest="${deploy.dir}/${ant.project.name}.swf" static-lrsl="true"
      main="flump/Flump.as"/>
  </target>

  <target name="maven-deploy" depends="dist"
          description="Deploys build artifacts to a Maven repository.">
    <mavendeploy file="${deploy.dir}/${ant.project.name}.swc" pom="pom.xml" srcdir="${asrc.dir}"/>
  </target>
</project>

<?xml version="1.0" standalone="yes"?>
<project name="flump" default="dist" basedir=".">
  <property name="asrc.dir" location="src/main/as"/>
  <property name="deploy.dir" location="dist"/>

  <property name="ooo-build.vers" value="2.5"/>
  <ant antfile="etc/bootstrap.xml"/>
  <import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>

  <target name="clean" description="Removes all generated files and directories">
    <delete dir="${deploy.dir}"/>
  </target>

  <target name="dist" depends="-init-ooo" description="Builds the library (.swc file)">
    <mkdir dir="${deploy.dir}"/>
    <mavendep pom="pom.xml" pathProp="aslib.path"/>
    <maventaskdef groupId="com.threerings.ant" artifactId="actionscript" version="1.4"/>
    <amxmlc srcdir="${asrc.dir}" libpath="${aslib.path}"
      dest="${deploy.dir}/${ant.project.name}.swf" static-lrsl="true"
      main="flump/Flump.as"/>
  </target>

  <target name="maven-deploy" depends="dist"
          description="Deploys build artifacts to a Maven repository.">
    <mavendeploy file="${deploy.dir}/${ant.project.name}.swc" pom="pom.xml" srcdir="${asrc.dir}"/>
  </target>
</project>

Switch to an ooo-ant-actionscript that respects FLEX_HOME
Switch to an ooo-ant-actionscript that respects FLEX_HOME
