Thanks Konstantin.
In xdoclet 1.x i guess we have a tag like this
@ejb.bean
generate="false"
This would make sure that the bean that is marked as above will not be processed.
If I were to make this work in Xdoclet 2.0, how would I do it if i cannot control through 'shouldGenerate' method?
In my custom plugin, i want to generate a single output only for those files that implement an interface and also has a tag attached to it. I'm trying to add that check in shouldGenerate method.
I guess I cannot have that kind of control i my ant <file> task.
shouldGenerate is the only place where i can decide that.
How can i do this in Xdoc 2.0?
thanks
karthik
On Sat, 28 May 2005 Konstantin Priblouda wrote :
>If you set multioutput to false,
>plugin would be called for all metadata once.
>
>so individual checking would not be done.
>
>regards,
>--- karthik Guru <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > in my Custom Plugin, I have a method like this..
> >
> > public boolean shouldGenerate(Object metadata) {
> > return false;
> > }
> >
> >
> > I called my plugin by registering using the ant
> > <component class=""/> tag.
> >
> > The Jelly file with the same name as my plugin is
> > also getting called.
> >
> > I'm selecting a set of files just before registering
> > the plugin within ant task.
> >
> > Now what i cant understand is why should any file
> > get processed at all since am returning 'false' from
> > the above method.
> >
> > class.fullyQualifiedName is returning class name in
> > the jelly template for all the selected files with
> > ant.
> >
> > I know that my Plugin is getting registered because
> > the file name am using for the target file
> > (command-mapping.xml) is getting created.
> >
> > public CommandPlugin(JellyTemplateEngine
> > jellyTemplateEngine,
> > QDoxCapableMetadataProvider metadataProvider,
> > WriterMapper writerMapper) throws
> > ClassNotFoundException {
> >
> > super(jellyTemplateEngine, metadataProvider,
> > writerMapper);
> > setFilereplace("command-mapping.xml");
> > setMultioutput(false);
> >
> > /*
> >
>metadataProvider.getDocletTagFactory().registerTag("command",
> >
> >
>org.xdoclet.plugin.command.qtags.CommandTagImpl.class);
> > */
> >
> > new TagLibrary(metadataProvider);
> > }
> >
> >
> > Any help?
> >
> > thanks
> > karthik
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>----[ Konstantin Pribluda ( ko5tik ) ]----------------
>... Auf der Suche nach einen Projekt in Rhein-Main
>ab 18.4.2005
>----[ http://www.pribluda.de ]------------------------
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
- [xdoclet-user] problem when creating custom plugin karthik Guru
- Re: [xdoclet-user] problem when creating custom ... Konstantin Priblouda
- Re: Re: [xdoclet-user] problem when creating cus... karthik Guru
- Re: Re: [xdoclet-user] problem when creating... Konstantin Priblouda
