HADOOP-7351 Regression: HttpServer#getWebAppsPath used to be protected so subclasses could supply alternate webapps path but it was made private by HADOOP-6461

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1130730 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-06-02 18:56:32 +00:00
parent 01b24a077a
commit f4598b3f08
2 changed files with 5 additions and 1 deletions

View File

@ -315,6 +315,10 @@ Release 0.22.0 - Unreleased
HADOOP-7134. configure files that are generated as part of the released
tarball need to have executable bit set. (Roman Shaposhnik via cos)
HADOOP-7351 Regression: HttpServer#getWebAppsPath used to be protected
so subclasses could supply alternate webapps path but it was made private
by HADOOP-6461 (Stack)
IMPROVEMENTS
HADOOP-6644. util.Shell getGROUPS_FOR_USER_COMMAND method name

View File

@ -462,7 +462,7 @@ public class HttpServer implements FilterContainer {
* @return the pathname as a URL
* @throws FileNotFoundException if 'webapps' directory cannot be found on CLASSPATH.
*/
private String getWebAppsPath(String appName) throws FileNotFoundException {
protected String getWebAppsPath(String appName) throws FileNotFoundException {
URL url = getClass().getClassLoader().getResource("webapps/" + appName);
if (url == null)
throw new FileNotFoundException("webapps/" + appName