Hi
I want to generate class-descriptors using xdoclet. I am using the OJB
xdoclet jar files from the contrib directory of OJB 1.0.rc5.
I have put OJB.s Article.java, AbstractArticle.java and Interface
Article .java in the ojbdoclet fileset directory. When I try to
generate repository mappings I get a file with 2 lines of comments
only. No class-descriptors are generated. These files are being picked
up as I get info messages about defaulting the package names. I have
also tried with my own java files with the same result.
Here is my buildfile.
<?xml version="1.0" encoding="UTF-8"?>
<!-- OJB ant build script for xdoclet use -->
<project name="OJB XDoclet" default="repository-files" >
<path id="ojb-classpath">
<fileset dir="lib/xdoclet">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="repository-files">
<taskdef name="ojbdoclet"
classname="xdoclet.modules.ojb.OjbDocletTask">
<classpath refid="ojb-classpath"/>
</taskdef>
<ojbdoclet
destdir="./out">
<fileset dir="./src"/>
<ojbrepository destinationFile="repository_user.xml"/>
</ojbdoclet>
</target>
</project>
I have not downloaded the xdoclet code from the CVS. (firewall
restrictions). Could this be my problem?
Other than -buildfile are there other arguments that I should be passing
to ant.
Any advice on what I am doing wrong would be appreciated.
Thanks for your help
Avril