On Tue, 11 Dec 2001 [EMAIL PROTECTED] wrote:

> 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.

you'll need to use cvs for a lot of what we're suggesting
(o:  sorry... should've said that...

> 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

ahhh... I'd actually go about it a different way.  ejb-jar_xml.j is a
fairly simple wrapper... most of the real work, for the beans at least, is
done in ejb-body.j - so I would make your own wrapper file, and have that
merge with the ejb-body.j in a similar way to ejb-jar_xml.j does.  make
sense?  I posted this next bit yesterday, but my ISP has had mail issues
the last couple of days, so here 'tis again (o:

<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" />

should create something like what you want (I think).

> I hope, you can help me.

let me know if the above does.

cheers
dim



_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to