If you look at plugin source (for example HibernateMappingPlugin)
you'll see the line
setMultioutput(true);
It means that output file will be generated for EACH metadata object
which shouldGenerate(Object metadata) method returns true. So in case
of multioutput plugin ${metadata} is single class.
If
setMultioutput(false);
(see HibernateConfigPlugin.java) then output script (.jelly or .vm)
invoked for all bunch of generated classes. So in this case
${metadata} is collection of the javaclasses.
On 23 May 2005 06:24:20 -0000, karthik Guru <[EMAIL PROTECTED]> wrote:
>
>
> Hello All,
>
> ok now that am perusing through the source code, I think I have a slightly
> better understanding now :) . I need to see how the xdoclet ant task is
> implemented though. I'm a newbie so please bear with me.
>
> Ok a quick question,
>
> I was looking at the ejb plugin and velocity template for local/remote
> interfaces. The first line is
>
> #set( $class = $metadata )
>
> Now if my understanding is correct $metadata is probably Qdox's JavaClass?
> So this velocity template probably gets invoked with the JavaClass instance
> for every source file encountered?
>
> I looked at the EjbJarXmlPlugin.jelly file too.
>
> Here $metadata represent a collection of metadata of all the entity beans
> identified by the fileset?.
>
> How does generama / whatever knows that plugin to generate local
> interfaces needs to be called in a loop with a JavaClass instance while
> plugin to generate ejb-jar.xml needs to be called 'once' with a collection
> of JavaClass instances?
>
> <j:jelly xmlns:j="jelly:core">
> <ejb-jar>
>
> <enterprise-beans>
> <j:forEach var="class" items="${metadata}">
>
> <!-- rest ignored -->
>
> thanks,
> karthik
>
>
> On Sun, 22 May 2005 Anatol Pomozov wrote :
> >I would write such article If I were English native speaker. But my
> >English far from perfection.
> >
> >TOALL. Do you know that xdoclet Confluence wiki has write permissions
> >for registered users??? So anyone of you can add documentation which
> >will be included later in official release bundle. Registering in
> >Confuence takes several minutes. You have possibility improve docs and
> >help xdoclet project.
> >
> >On 20 May 2005 17:42:07 -0000, karthik Guru <[EMAIL PROTECTED]>
> wrote:
> > >
> > >
> > > thanks! Let me see if i can get it to work. It would be great if one of
> you
> > > guys, during spare time, start working on a detailed xdoclet 2.0
> article.
> > >
> > > - karthik
> > >
> > >
> > > On Fri, 20 May 2005 Anatol Pomozov wrote :
> > >
> > > >I am using xdoclet during last 4 months and I would say that happy
> > > >with it (support of Hibernate3 is great).
> > > >
> > > >But as you said the documentation is very poor, its true.
> > > >With xdoclet bundle (see link below) goes rich set of tests where you
> > > >can find usecases for using xdoclet. Also on xdoclet.codehaus.org
> > > >Confluence contains pages with list of supported tags for all official
> > > >plugins.
> > > >
> > > >Latest official release you can find at sourceforge server
> > >
> >http://sourceforge.net/project/showfiles.php?group_id=88133&package_id=92059&release_id=324707
> > > >
> > > >
> > > >On 20 May 2005 15:22:43 -0000, karthik Guru
> <[EMAIL PROTECTED]>
> > > wrote:
> > > > >
> > > > >
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I looked at the 2 minute tutorial and i want to put xdoclet 2 to
> use.
> > > > > But somehow i'm not able to find any of the jars listed in the
> sample
> > > build
> > > > > file in the tutorial. Could you please point me to the location
> where i
> > > can
> > > > > download these jars?
> > > > > Also is there a detailed tutorial to use xdoclet 2.0 somewhere
> > > > > or is too early to use xdoclet?
> > > > >
> > > > > thanks
> > > > > karthik
> > > > >
> > > > >
> > > >
> > > >
> > > >--
> > > >anatol
> > >
> > >
> > >
> > >
> > >
> >
> >
> >--
> >anatol
>
>
>
--
anatol