david,
Thank you for the snippet. I copied, modified, and put it into my build.xml but I still do not get the generated ".hbm.xml". I have "Message.java" under "src" directory and build.xml one directory above. Running Ant I'm hoping to get "Message.hbm.xml" under the src directory but I don't find any generated file there. I agree that most of the time it an environment issue, but I know Ant is finding "xdoclet.modules.hibernate.HibernateDocletTask" properly. Every time I run Ant with the command, "ant hbmxdoclet", I get "BUILD SUCCESSFUL" message.
I'm using the following snippet, which is basically identical to yours:
Taskdef
Code:
<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask">
<classpath refid="classpath" />
</taskdef>
and Task
Code:
<target name="hbmxdoclet"
description="Generates Hibernate mapping files with XDoclet.">
<hibernatedoclet
destdir="${src}"
excludedtags="@version,@author,@todo"
force="true"
mergedir="${build}"
verbose="true">
<fileset dir="${src}">
<include name="**/*.java"/>
</fileset>
<hibernate version="3.0"/>
</hibernatedoclet>
</target>
I tested the same build.xml with the same configuration (XDoclet1.2.3, Hibernate3.1.2, Apache-ant-1.6.5) upon both Linux and WinXP but no success. I have no clue for what's going here... Is there anything else I should check? I appreciate any advice.
BTW. I will post this kind of tool related topics to the TOOL forum next time.