1 5 package xdoclet.modules.portlet; 6 7 import xdoclet.XDocletException; 8 import xdoclet.XDocletMessages; 9 import xdoclet.XmlSubTask; 10 import xdoclet.util.Translator; 11 12 30 public class PortletXmlSubTask extends XmlSubTask 31 { 32 private static String DEFAULT_PORTLET_XML_SCHEMA = "http://java.sun.com/xml/portlet.xsd"; 33 34 private static String DEFAULT_TEMPLATE_FILE = "resources/portlet_xml.xdt"; 35 36 private static String GENERATED_FILE_NAME = "portlet.xml"; 37 38 public PortletXmlSubTask() 39 { 40 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 41 setDestinationFile(GENERATED_FILE_NAME); 42 setSchema(DEFAULT_PORTLET_XML_SCHEMA); 43 } 44 45 50 public void execute() throws XDocletException 51 { 52 startProcess(); 53 } 54 55 protected void engineStarted() throws XDocletException 56 { 57 System.out.println(Translator.getString(XDocletMessages.class, XDocletMessages.GENERATING_SOMETHING, new String []{getDestinationFile()})); 58 } 59 } 60 | Popular Tags |