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 PageSpecificationSubTask extends TemplateSubTask 24 { 25 protected final static String DEFAULT_TEMPLATE_FILE = "resources/page-specification.xdt"; 26 27 29 public PageSpecificationSubTask() 30 { 31 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 32 setDestinationFile("{0}.page"); 33 setPrefixWithPackageStructure(false); 34 } 35 36 43 protected boolean matchesGenerationRules(XClass clazz) throws XDocletException 44 { 45 return clazz.getDoc().getTag("tapestry:page-specification") != null; 46 } 47 } 48 | Popular Tags |