<?xml version="1.0"?>
<!--

  Ant Buildfile for MOA ID templates component

  $Id$

-->
<project name="id.templates" default="package" basedir=".">
  <property name="tmp" value="tmp"/>
  <property name="dist" value="${tmp}/dist"/>
                   
  <!-- set up directories etc. -->
  <target name="init">
    <tstamp/>
    <echo>Time (hhmm): ${TSTAMP}</echo>
    <mkdir dir="${tmp}"/>
    <mkdir dir="${dist}"/>
  </target>

  <!-- package templates.war -->
  <target name="package" depends="init">
    <war warfile="${dist}/moaid-templates.war" webxml="web.xml">
      <fileset dir="html"/>
    </war>
  </target>

  <!-- clean temporary files -->
  <target name="clean">
    <delete dir="${tmp}"/>
  </target>
</project>