1 5 package xdoclet.modules.apache.axis.ejb; 6 7 import xdoclet.XDocletException; 8 import xdoclet.XmlSubTask; 9 import xdoclet.util.Translator; 10 11 19 public class AxisUndeploySubTask extends XmlSubTask 20 { 21 private final static String AXIS_SCHEMA = "http://xml.apache.org/axis/wsdd"; 22 23 private static String DEFAULT_TEMPLATE_FILE = "resources/axis-undeploy_wsdd.xdt"; 24 25 private static String GENERATED_FILE_NAME = "undeploy-{0}.xml"; 26 27 30 public AxisUndeploySubTask() 31 { 32 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 33 setDestinationFile(GENERATED_FILE_NAME); 35 setSchema(AXIS_SCHEMA); 36 setHavingClassTag("axis:service"); 37 setValidateXML(false); 38 } 39 40 45 public void validateOptions() throws XDocletException 46 { 47 super.validateOptions(); 48 } 49 50 55 protected void engineStarted() throws XDocletException 56 { 57 String service_urn = getCurrentClass().getDoc().getTag("axis:service").getValue(); 58 String dest_file_name = getDestinationFile(); 59 60 System.out.println(Translator.getString(XDocletModulesApacheAxisEjbMessages.class, XDocletModulesApacheAxisEjbMessages.GENERATING_UD, 61 new String []{getCurrentClass().getQualifiedName(), service_urn, dest_file_name})); 62 } 63 } 64 | Popular Tags |