Source

syntactic / build.xml

Full commit
<!-- vim: set ft=ant ts=2 sts=2 expandtab shiftwidth=2  : -->
<project name="syntactic-root"  default="all" basedir="."  xmlns:ivy="antlib:org.apache.ivy.ant" >

  <macrodef name="recursive">
    <attribute name="target" />
    <sequential>
      <ant dir="parser" target="@{target}" />
      <ant dir="convert" target="@{target}" />
    </sequential>
  </macrodef>

  <target name="all"   description="Build modules + runs tests">
    <recursive target="all" />
    <antcall target="dist.zip" />
  </target>
  <target name="build" description="Build modules">
    <recursive target="build" />
  </target>
  <target name="compile">
    <recursive target="compile" />
  </target>
  <target name="test">
    <recursive target="test" />
  </target>

  <target name="dist">
    <recursive target="dist" />
    <antcall target="dist.zip" />
  </target>

  <target name="dist.zip">
    <zip destfile="syntactic.zip">
      <fileset dir="parser/output/ant/dist" />
      <fileset dir="convert/output/ant/dist" />
    </zip>
  </target>

  <target name="clean">
    <recursive target="clean" />
  </target>

</project>