Witam.
Potrzebuję napisać build.xml, tworzący kompilującego się .jar'a z programem. W stworzonym przeze mnie kodzie, build.xml pomija w tworzeniu pliki od mapowania *.hbm.xml, bez których jar się nie kompiluje. Jak zmodyfikować poniższy kod, aby nie pomijał tych plików? Hibernate.cfg.xml dodaje się poprawnie.

 
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Warsztat" default="dist" basedir=".">
<description>
 simple example build file 
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<path id="libs">
<fileset dir="lib">
<include name="*.jar"/>
<include name="*.hbm.xml"/>
</fileset>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" classpathref="libs" includeantruntime="false" destdir="${build}"/>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib2"/>
<jar jarfile="${dist}/lib2/Warsztat-${DSTAMP}.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="warsztat.Warsztat"/>
</manifest>
<zipgroupfileset dir="lib" includes="*.jar"/>
<fileset dir="src" includes="*.xml"/>
</jar>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>

Pozdrawiam.