1 5 package xdoclet.modules.exolab.castor.ejb; 6 7 8 import xdoclet.XmlSubTask; 9 10 20 public class CastorSubTask extends XmlSubTask 21 { 22 private final static String MAPPING_DD_PUBLICID = "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"; 23 24 private final static String MAPPING_DD_SYSTEMID = "http://castor.exolab.org/mapping.dtd"; 25 26 private static String DEFAULT_TEMPLATE_FILE = "resources/mapping_xml.xdt"; 27 28 private static String GENERATED_FILE_NAME = "mapping.xml"; 29 30 33 public CastorSubTask() 34 { 35 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 36 setDestinationFile(GENERATED_FILE_NAME); 37 setPublicId(MAPPING_DD_PUBLICID); 38 setSystemId(MAPPING_DD_SYSTEMID); 39 } 40 } 41 | Popular Tags |