1 5 package xdoclet.modules.wsee; 6 7 import xdoclet.XDocletException; 8 import xdoclet.XmlSubTask; 9 import xdoclet.util.Translator; 10 11 19 20 public class JaxrpcMappingSubTask extends XmlSubTask 21 { 22 25 private static String DEFAULT_TEMPLATE_FILE = 26 "resources/jaxrpc-mapping_xml.xdt"; 27 28 31 public JaxrpcMappingSubTask() 32 { 33 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 34 } 35 36 41 public void execute() throws XDocletException 42 { 43 validateOptions(); 44 startProcess(); 45 } 46 47 51 public void validateOptions() throws XDocletException 52 { 53 setDestinationFile( 54 (String ) getContext().getConfigParam("JaxrpcMappingFile")); 55 super.validateOptions(); 56 } 57 58 63 protected void engineStarted() throws XDocletException 64 { 65 System.out.println( 66 Translator.getString( 67 XDocletModulesMessages.class, 68 XDocletModulesMessages.GENERATING_JAXRPC_MAPPING_DESCRIPTOR, 69 new String []{getDestinationFile()})); 70 } 71 72 } 73 | Popular Tags |