I have inherited a
build process with the following Ant tasks:
<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask">
<classpath>
<pathelement path="${products.home}/Xdoclet/templates"/>
<fileset dir="${xdoclet.home}/lib">
<include name="xdoclet-1.2.3.jar"/>
<include name="xjavadoc-1.1.jar"/>
<include name="xdoclet-hibernate3-module-1.2.3.jar"/>
<include name="commons-logging.jar"/>
<include name="commons-collections-2.0.jar"/>
<include name="xdoclet-java-module-1.2.3.jar"/>
<include name="xdoclet-xdoclet-module-1.2.3.jar"/>
</fileset>
</classpath>
</taskdef>
<classpath>
<pathelement path="${products.home}/Xdoclet/templates"/>
<fileset dir="${xdoclet.home}/lib">
<include name="xdoclet-1.2.3.jar"/>
<include name="xjavadoc-1.1.jar"/>
<include name="xdoclet-hibernate3-module-1.2.3.jar"/>
<include name="commons-logging.jar"/>
<include name="commons-collections-2.0.jar"/>
<include name="xdoclet-java-module-1.2.3.jar"/>
<include name="xdoclet-xdoclet-module-1.2.3.jar"/>
</fileset>
</classpath>
</taskdef>
<echo
message="*************** Running hibernate doclet ******************"
/>
<hibernatedoclet destdir="${build}/scratch/mappings" excludedtags="@version,@author,@todo" force="true" verbose="false">
<fileset dir="src"/>
<hibernate version="3.0" />
</hibernatedoclet>
<hibernatedoclet destdir="${build}/scratch/mappings" excludedtags="@version,@author,@todo" force="true" verbose="false">
<fileset dir="src"/>
<hibernate version="3.0" />
</hibernatedoclet>
In the
Xdoclet/templates directory is the further directory structure
xdoclet\modules\hibernate\resources with the following four
files:
hibernate-joined-subclass.xdt
hibernate-properties.xdt
hibernate-subclass.xdt
hibernate.xdt
hibernate-subclass.xdt
hibernate.xdt
So what I gather
from this is that we have customized versions of the default hibernate templates
that we are using by adding them to the front of the classpath. The problem
comes in that I am trying to convert this process to Maven using the
xdoclet-maven-plugin and there doesn't seem to be a way to manipulate the
classpath to front-load our templates. So my questions are:
1. Is there another
way to make use of these templates? I've been toying with the <template>
element, but can't get it to work.
2. Is there a better
way to go about this?
Chris
Hilton
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user