<?xml version='1.0' encoding='ISO-8859-1'?>
<project name="embed" basedir="." default="compile">

  <!-- =======================================================================
       Specify here the location of the directory where w2x_all.jar is found.
  ======================================================================== -->
  <property name="jar.dir" value="../../../lib" />

  <path id="cp">
    <pathelement location="." />
    <pathelement location="${jar.dir}/w2x_all.jar" />
  </path>

  <target name="init">
    <tstamp />
  </target>

  <target name="compile" depends="init">
    <javac includeantruntime="false" debug="on"
           debuglevel="source,lines" deprecation="on" 
           classpathref="cp" srcdir="." destdir="." includes="*.java" />
  </target>

  <target name="tembed1" depends="compile">
    <java classpathref="cp" fork="yes" classname="Embed1">
      <arg value="-o" />
      <arg value="topic" />
      <arg value="../manual.docx" />
      <arg value="tembed1.dita" />
    </java>
  </target>

  <target name="tembed2" depends="compile">
    <java classpathref="cp" fork="yes" classname="Embed2">
      <arg value="../manual.docx" />
      <arg value="tembed2.xhtml" />
    </java>
  </target>

  <target name="clean">
    <delete>
      <fileset dir="." defaultexcludes="no">
        <patternset>
          <include name="*~" />
          <include name="*.class" />
          <include name="tembed*.*" />
        </patternset>
      </fileset>
    </delete>
    <delete quiet="true" dir="tembed1_files" />
    <delete quiet="true" dir="tembed2_files" />
  </target>

</project>
