1 5 package xdoclet.modules.macromedia.jrun.web; 6 7 import xdoclet.XmlSubTask; 8 9 21 public class JRunWebXmlSubTask extends XmlSubTask 22 { 23 private final static String JRUN_WEB_PUBLICID = "-//Macromedia, Inc.//DTD jrun-web 4.0//EN"; 24 25 private final static String JRUN_WEB_SYSTEMID = "http://www.macromedia.com/dtds/jrun-web.dtd"; 26 27 private final static String JRUN_WEB_DTD_FILE_NAME = "resources/jrun-web.dtd"; 28 29 32 private static String DEFAULT_TEMPLATE_FILE = "resources/jrun_web_xml.xdt"; 33 34 37 private static String GENERATED_FILE_NAME = "jrun-web.xml"; 38 39 42 protected String contextRoot = ""; 43 44 protected String reload = ""; 45 46 protected String compile = ""; 47 48 protected String loadSystemClassesFirst = ""; 49 50 53 public JRunWebXmlSubTask() 54 { 55 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 56 setDestinationFile(GENERATED_FILE_NAME); 57 setPublicId(JRUN_WEB_PUBLICID); 58 setSystemId(JRUN_WEB_SYSTEMID); 59 setDtdURL(getClass().getResource(JRUN_WEB_DTD_FILE_NAME)); 60 } 61 62 68 public String getContextRoot() 69 { 70 return contextRoot; 71 } 72 73 79 public String getReload() 80 { 81 return reload; 82 } 83 84 89 public String getCompile() 90 { 91 return compile; 92 } 93 94 100 public String getLoadSystemClassesFirst() 101 { 102 return loadSystemClassesFirst; 103 } 104 105 110 public void setContextRoot(String contextRoot) 111 { 112 this.contextRoot = contextRoot; 113 } 114 115 120 public void setReload(String reload) 121 { 122 if (reload.equalsIgnoreCase("true")) { 123 this.reload = "true"; 124 } 125 else { 126 this.reload = "false"; 127 } 128 } 129 130 135 public void setCompile(String compile) 136 { 137 if (compile.equalsIgnoreCase("true")) { 138 this.compile = "true"; 139 } 140 else { 141 this.compile = "false"; 142 } 143 } 144 145 150 public void setLoadSystemClassesFirst(String loadSystemClassesFirst) 151 { 152 if (loadSystemClassesFirst.equalsIgnoreCase("true")) { 153 this.loadSystemClassesFirst = "true"; 154 } 155 else { 156 this.loadSystemClassesFirst = "false"; 157 } 158 } 159 } 160 | Popular Tags |