1 5 package xdoclet.modules.openejb.ejb; 6 7 import xdoclet.TemplateSubTask; 8 import xdoclet.XDocletException; 9 10 18 public class OpenEJBSubTask extends TemplateSubTask 19 { 20 private final static String DEFAULT_OPENEJB_XML_TEMPLATE_FILE = "resources/openejb-jar_xml.xdt"; 21 private final static String OPENEJB_XML_FILE_NAME = "openejb-jar.xml"; 22 private String openEJBTemplateFile = DEFAULT_OPENEJB_XML_TEMPLATE_FILE; 23 private String OPENEJB_DTD_FILE_NAME = "resources/openejb-jar_1_1.dtd"; 24 25 public OpenEJBSubTask() 26 { 27 setTemplateURL(getClass().getResource(DEFAULT_OPENEJB_XML_TEMPLATE_FILE)); 28 setDestinationFile(OPENEJB_XML_FILE_NAME); 29 setHavingClassTag("openejb"); 30 } 31 32 public String getOpenEJBTemplateFile() 33 { 34 return openEJBTemplateFile; 35 } 36 37 public void setOpenEJBTemplateFile(String openEJBTemplateFile) 38 { 39 this.openEJBTemplateFile = openEJBTemplateFile; 40 } 41 42 47 public void validateOptions() throws XDocletException 48 { 49 super.validateOptions(); 51 } 52 53 } 54 | Popular Tags |