1 package xdoclet.sdk.ant;
2
3 import xdoclet.plugins.JellyPlugin;
4
5 import java.beans.BeanInfo;
6 import java.beans.Introspector;
7 import java.beans.IntrospectionException;
8
9 /***
10 * This plugin generates a build.xml file based on how XDoclet is configured.
11 * It can be activated by setting XDoclet's buildXmlDir property.
12 *
13 * @see xdoclet.XDoclet#setBuildXmlDir(java.io.File)
14 * @see xdoclet.XDoclet#getBuildXmlDir()
15 *
16 * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
17 * @version $Revision: 1.2 $
18 */
19 public class BuildXmlPlugin extends JellyPlugin {
20 public BuildXmlPlugin() {
21 setTemplatePath("xdoclet/sdk/ant/build.xml.jelly");
22 setFileName("build.xml");
23 }
24
25 /***
26 * Callback method for template.
27 * @param o the object for which we want BeanInfo.
28 * @return BeanInfo for clazz.
29 * @throws IntrospectionException if BeanInfo can't be found.
30 */
31 public BeanInfo getBeanInfo( Object o ) throws IntrospectionException {
32 return Introspector.getBeanInfo( o.getClass() );
33 }
34 }
This page was automatically generated by Maven