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 20 public class MxInfoSubTask 21 extends TemplateSubTask 22 { 23 private static final String DEFAULT_TEMPLATE_FILE = 24 "/org/apache/avalon/phoenix/tools/xdoclet/mxinfo.xdt"; 25 26 public MxInfoSubTask() 27 { 28 setupParams(); 29 } 30 31 private void setupParams() 32 { 33 setSubTaskName( "mxinfo" ); 34 final URL resource = getClass().getResource( DEFAULT_TEMPLATE_FILE ); 35 setTemplateURL( resource ); 36 setDestinationFile( "{0}.mxinfo" ); 37 38 setHavingClassTag( "phoenix:mx-topic" ); 41 } 42 43 protected void engineStarted() throws XDocletException 44 { 45 System.out.println( "Generating MxInfo file: " + getGeneratedFileName( getCurrentClass() ) ); 46 } 47 } 48 | Popular Tags |