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










Reply via email to