<project default="generate-records" basedir="../../" name="Record Generation build">

  <target name="generate-records"
     description="Generates the record source code">

      <java classname="org.apache.poi.dev.RecordGenerator" fork="yes">
          <arg value="src/records/definitions"/>
          <arg value="src/records/styles"/>
          <arg value="src/java"/>
          <arg value="src/testcases"/>
     <classpath>
       <path>
          <pathelement path="${xlayout.build.classes.dir}"/>       
          <pathelement path="${xlayout.build.scratchpad.classes.dir}"/>
          <fileset dir="${xlayout.library.dir}" casesensitive="yes">
           <patternset>
             <include name="*/*.jar"/>
             <include name="*/*.zip"/>
           </patternset>
         </fileset>  
          <fileset dir="${xlayout.source.scratchpad.library.dir}" casesensitive="yes"> 
           <patternset>
             <include name="*.jar"/>
             <include name="*.zip"/>
           </patternset>
         </fileset>           
       </path> 
     </classpath>
      </java>

  </target>
  
   <target name="generate-types"
     description="Generates the record source code">

      <java classname="org.apache.poi.dev.RecordGenerator" fork="yes">
          <arg value="src/types/definitions"/>
          <arg value="src/types/styles"/>
          <arg value="src/scratchpad/src"/>
          <arg value="src/scratchpad/testcases"/>
     <classpath>
       <pathelement path="${xlayout.build.classes.dir}"/>       
       <path>
          <fileset dir="${xlayout.library.dir}" casesensitive="yes"> 
           <patternset>
             <include name="*/*.jar"/>
             <include name="*/*.zip"/>
           </patternset>
         </fileset>  
          <fileset dir="${xlayout.source.scratchpad.library.dir}" casesensitive="yes"> 
           <patternset>
             <include name="*.jar"/>
             <include name="*.zip"/>
           </patternset>
         </fileset>           
       </path> 
     </classpath>
      </java>

   </target>
</project>   