Finds the web application configuration file (web.xml) for the given path. @param path the document base path @param contextName the context name @return the configuration file URL, or null if not found
(String path, String contextName)
| 1209 | * @return the configuration file URL, or null if not found |
| 1210 | */ |
| 1211 | protected URL getWebappConfigFile(String path, String contextName) { |
| 1212 | File docBase = new File(path); |
| 1213 | if (docBase.isDirectory()) { |
| 1214 | return getWebappConfigFileFromDirectory(docBase, contextName); |
| 1215 | } else { |
| 1216 | return getWebappConfigFileFromWar(docBase, contextName); |
| 1217 | } |
| 1218 | } |
| 1219 | |
| 1220 | private URL getWebappConfigFileFromDirectory(File docBase, String contextName) { |
| 1221 | URL result = null; |