1 8 package org.apache.avalon.phoenix.tools.xdoclet; 9 10 import java.net.URL ; 11 import xdoclet.TemplateSubTask; 12 import xdoclet.XDocletException; 13 14 21 public class BlockInfoSubTask 22 extends TemplateSubTask 23 { 24 private static final String DEFAULT_TEMPLATE_FILE = 25 "/org/apache/avalon/phoenix/tools/xdoclet/blockinfo.xdt"; 26 27 public BlockInfoSubTask() 28 { 29 setupParams(); 30 } 31 32 private void setupParams() 33 { 34 setSubTaskName( "blockinfo" ); 35 final URL resource = getClass().getResource( DEFAULT_TEMPLATE_FILE ); 36 setTemplateURL( resource ); 37 setDestinationFile( "{0}.xinfo" ); 38 setAcceptAbstractClasses( false ); 39 setHavingClassTag( "phoenix:block" ); 40 } 41 42 protected void engineStarted() throws XDocletException 43 { 44 System.out.println( "Generating BlockInfo file: " + getGeneratedFileName( getCurrentClass() ) ); 45 } 46 } 47 | Popular Tags |