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 

Reply via email to