User Documentation
One Minute Introduction
Two Minute Introduction
Your own plugin
Coffee Break Introduction
Property substitution
FAQ
|
|||||
|
|||||
User DocumentationOne Minute Introduction IDE IntegrationMaven Integration |
XDoclet Invocation through Ant
XDoclet Invocation through AntA sample build target for invoking the plugin that we just wrote might look like this. Infact the <component> element can be used to register any component Pico container is not aware of (Note that Pico registers velocity, template engines and QDox metadata provider etc by default and hence need not be declared in the build file). If we were to write a plugin / custom metadata provider implementation / a template engine! for that matter they can be registered with Pico using the <component> element. xdoclet2 plugins are hosted here. Download and unzip it to the file system. build.xml Plugin and lowercase attributes on component task declarationEvery plugin / component is likely to expose custom attributes (in addition to the ones defined on the abstract Plugin cass) for customization. Unfortunately, as discussed earlier, Ant converts the attribute name to 'servletversion' and Pico would throw an error indicating the absence of such an attribute on the concrete Plugin class. So in order to make sure that the Plugin works correctly when invoked through Ant, it becomes necessary that plugin writers follow a lowercase attribute naming convention! |
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||