<!-- this is an ANT file -->
<project name="resume">

  <property name="fop.conf" value="../.."/>
  <property name="fop.home" value="c:/tools/fop-0.93"/>
  <property name="saxon.home" value="c:/tools/saxonb8-8j"/>

  <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
    <classpath>
      <fileset dir="${fop.home}/lib">
	<include name="*.jar"/>
      </fileset>
      <fileset dir="${fop.home}/build">
	<include name="fop.jar"/>
	<include name="fop-hyph.jar" />
      </fileset>
    </classpath>
  </taskdef>

  <path id="saxon.jars">
    <fileset dir="${saxon.home}">
      <include name="**/*.jar"/>
    </fileset>
  </path>

  <target name="resume.xslt">
    <xslt in="resume-2007.xml" out="resume-2007.fo" style="resume.xsl"/>
  </target>

  <target name="resume.saxon">
    <java
      classname="net.sf.saxon.Transform"
      classpathref="saxon.jars">
      <arg value="-o"/>
      <arg value="resume-2007.fo"/>
      <arg value="resume-2007.xml"/>
      <arg value="resume.xsl"/>
    </java>
  </target>

  <target name="resume.html">
    <java
      classname="net.sf.saxon.Transform"
      classpathref="saxon.jars">
      <arg value="-o"/>
      <arg value="resume-2007.html"/>
      <arg value="resume-2007.xml"/>
      <arg value="resume-html.xsl"/>
    </java>
  </target>

  <target name="resume.pdf" depends="resume.saxon">
    <fop
      fofile="resume-2007.fo"
      outfile="resume-2007.pdf"
      format="application/pdf"
      userconfig="${fop.conf}/fop-conf.xml"/>
  </target>


  <target name="test.odt">
    <zip
      destfile="test.odt"
      basedir="odt"
      excludes="**/*~"/>
  </target>

  <target name="resume-2007.content">
    <java
      classname="net.sf.saxon.Transform"
      classpathref="saxon.jars">
      <arg value="-o"/>
      <arg value="resume-2007.content"/>
      <arg value="resume-2007.xml"/>
      <arg value="resume-odt.xsl"/>
    </java>
  </target>

  <target name="resume-2007.odt" depends="resume-2007.content">
    <!-- make the dir
         copy the content in
         make the manifest META-INF/manifest.xml
         create the mimetype file application/vnd.oasis.opendocument.text
         zip the lot up into resume-2007.odt
    -->
  </target>
</project>