Hi Dmitri,
I tried to use your template-Tag inside of <ejbdoclet> . But following the
error occurs:
Class xdoclet.TemplateSubTask doesn't support the "oftype" attribute.
I use xdoclet-1.0.1.
I hava another question:
Must I activate the functionality of {0}? With the tag
<deploymentdescriptor destinationFile="{0}-ejb-jar.xml"/>
a file with the name {0}-ejb-jar.xml will be generated in the
${build.dir}/ejb/META-INF. Inside this file is the deployment descriptor of
several Beans.
I've removed all Lines with the String "forAllClasses" in the file
D:\Programme\java\xdoclet-1.0.1\src\xdoclet\ejb\ejb-jar_xml.j
I hope, you can help me.
Cheers
Ellen
My ejbdoclet-tag:
<ejbdoclet
sourcepath="${src.dir}"
destdir="${generated.java.dir}"
classpathref="project.class.path"
excludedtags="@version,@author"
ejbspec="2.0">
<fileset dir="${src.dir}">
<include name="**/*Bean.java" />
</fileset>
<dataobject/>
<remoteinterface/>
<localinterface/>
<homeinterface/>
<localhomeinterface/>
<entitypk/>
<entitycmp/>
<deploymentdescriptor destinationFile="{0}-ejb-jar.xml"/>
<template
destinationFile="{0}-ejb-jar.xml"
ofType="javax.ejb.EntityBean"
templateFile="D:\Programme\java\xdoclet-1.0.1\src\xdoclet\ejb\ejb-body.j"
destdir="${build.dir}/ejb/META-INF" />
<jboss version="2.4" xmlencoding="UTF-8"
typemapping="Hypersonic SQL"
datasource="java:/DefaultDS"
destdir="${build.dir}/ejb/META-INF"/>
</ejbdoclet>
> > No, you're using destdir, but you should use destinationFile.
> > <deploymentdescriptor destinationFile="{0}-ejb-jar.xml"/>
>
> any reason why this doesn't do the trick:
>
> <template
> destinationFile="{0}-ejb-jar.xml"
> ofType="javax.ejb.EntityBean"
>
> templateFile="/home/dim/cvs/xdoclet/core/resources/xdoclet/ejb
> /ejb-body.j"
> destdir="${build.dir}/ejb/META-INF" />
>
> ?
>
> that's your other option, and should provide true fragments.
> If you need
> to wrap that template in something else, then its not too
> hard to do. (of
> course you'll need to change the value of templateFile above).
>
> cheers
> dim
>
>
> >
> > Ara.
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
>
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user