<?xml version="1.0"?>

<project name="site" default="update" basedir=".">
  
    <target name="forrest.check" unless="forrest.home">
        <fail message="'forrest.home' is not defined. 
        Please pass -Dforrest.home=&lt;base of Apache Forrest installation&gt; to Ant on the command-line." />
    </target>

  <target name="update" depends="clean, forrest.check">
    <exec dir="author" executable="${forrest.home}/bin/forrest" failonerror="true" />
    <copy todir="publish/">
      <fileset dir="author/build/site/" />
    </copy>
  </target>

  <target name="clean">
    <delete dir="author/build"/>
  </target>

</project>
