1 5 package xdoclet.modules.apache.tapestry; 6 7 import org.apache.commons.logging.Log; 8 9 import xjavadoc.XClass; 10 import xdoclet.TemplateSubTask; 11 12 import xdoclet.XDocletException; 13 14 23 public class ComponentSpecificationSubTask extends TemplateSubTask 24 { 25 protected final static String DEFAULT_TEMPLATE_FILE = "resources/component-specification.xdt"; 26 27 29 public ComponentSpecificationSubTask() 30 { 31 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 32 setDestinationFile("{0}.jwc"); 33 setPrefixWithPackageStructure(false); 34 } 35 36 43 protected boolean matchesGenerationRules(XClass clazz) throws XDocletException 44 { 45 return clazz.getDoc().getTag("tapestry.component-specification") != null; 46 } 47 } 48 | Popular Tags |