On Thu, 8 Apr 2004, Matthias Gottschlich wrote:

> Hi,
> 
> i try to use xdoclet-ojb-module from rc6. I put the xdoclet module in my 
> xdoclet-directory, put the call in my build.xml, but all what i get is 
> an empty repository with only two lines comments.
> I have two classe with @ojb.class an @ojb.fields tags, but there is 
> nothing to see....
> I see the tasks run in the console (i use ant from eclipse 2.x )

The task will print which source file it processes. If there are no lines
containing classnames, then the task will not have processed any classes.
This is usually due to a wrong fileset. The xdoclet task is similar to the
javac task in that it requires the directory structure to match the
package structure. E.g. if you have a class mypackage.MyClass, then the
fileset in the ojbdoclet task should point to the directory containing a
subdirectory mypackage which in turn contains the MyClass.java file.

Two other tips:

* invoke ant with the -v flag to see more output (or -debug for even more
output)

* use the CVS version of the XDoclet module; you can get it from the CVS
view at http://cvs.apache.org/viewcvs/db-ojb/ (no need to update OJB, only
the three XDoclet jars - xdoclet, xdoclet-ojb-module and xjavadoc in lib
folder - and the doc - xdoclet-module.xml in xdocs folder - will suffice).

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to