It all about the source directory. If your source directory is wrong or you
specify directly the package directory, it won't process the files
If you have a class like this
package com.sicflex.data
/**
* @author Sicflex
* @since version 1.0
* @hibernate.class
* tables="menu"
* dynamic-update="true"
*/
public class Menu
....
and a HibernateDoclet task like this:
<hibernatexdoclet
destdir="${some.dir}"
mergedir="${some.merge.dir}"
excludedtags="@version,@author,@todo,@see"
addedtags="@xdoclet-generated at ${TODAY},@copyright Sicflex,@version
${version}"
force="true"
verbose="false" >
<fileset dir="/com/sicflex/data">
<include name="**/*.java" />
</fileset>
<hibernate version="2.1"/>
</hibernatexdoclet>
This wont generate anything....
the Hibernate task should must be like this
<hibernatexdoclet
destdir="${some.dir}"
mergedir="${some.merge.dir}"
excludedtags="@version,@author,@todo,@see"
addedtags="@xdoclet-generated at ${TODAY},@copyright Sicflex,@version
${version}"
force="true"
verbose="false" >
<fileset dir="."> <=== Must point to the root of the source, so all
package resolve okey
<include name="**/*.java" />
</fileset>
<hibernate version="2.1"/>
</hibernatexdoclet>
or
<hibernatexdoclet
destdir="${some.dir}"
mergedir="${some.merge.dir}"
excludedtags="@version,@author,@todo,@see"
addedtags="@xdoclet-generated at ${TODAY},@copyright Sicflex,@version
${version}"
force="true"
verbose="false" >
<fileset dir="."> <=== Must point to the root of the source, so all
package resolve okey
<include name="/com/sicflex/data/*.java" /> <== you can be specific
</fileset>
<hibernate version="2.1"/>
</hibernatexdoclet>
-----Mensaje original-----
De: [EMAIL PROTECTED] en nombre de Paul Galbraith
Enviado el: SÃb 02/04/2005 08:55 a.m.
Para: [email protected]
CC:
Asunto: [Xdoclet-user] Re: HBM files not genertaed when HIbernateDoclet
task is run
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> I am trying to run the HibernateDoclet task.
>
>
> No HBM is generated.
> Can someone please guide me?
>
What does the java source look like?
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
<<winmail.dat>>
