On Wed, 2003-08-20 at 09:03, Andreas Koschinsky wrote:
> I have no idea what's going on. Sometimes xdoclet (1.2b3) generates hibernate xml
> files
> and sometimes it is not. Maybe someone could help and shine a light on it.
> Here the situation:
>
> I have a directory with two subdirectories
> 1) xdoclet: that's the binary distribution of xdoclet
> 2) test: directory for my package named test
...
> <!-- =================================================================== -->
> <!-- Invoke XDoclet's hibernate -->
> <!-- =================================================================== -->
> <target name="hibernate" depends="init" description="Generate mapping documents">
> <hibernatedoclet destdir="test" force="true">
> <fileset dir="test">
> <include name="Company.java"/>
> </fileset>
...
> The package test has only one java class:
> -----------------------------------------------------
> package test;
>
> /**
> *
> * @hibernate.class
> */
> public class Company {
...
> if the java file contains the package statement, xdoclet doesn't generate
> hibernate xml files. if i remove the package statement, it generates the
> files. if have no clue.
The fileset needs to be rooted at the top of the package hierarchy. So
if your class is in "package test;", the fileset's dir parameter needs
to be the directory containing test. In your particular case, you
should use
<fileset dir=".">
<include name="test/Company.java"/>
</fileset>
or, more generally,
<include name="**/*.java"/>
Andrew.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user