Add WAR plugin and refactor HttpServer
--------------------------------------

                 Key: HAMA-494
                 URL: https://issues.apache.org/jira/browse/HAMA-494
             Project: Hama
          Issue Type: Improvement
          Components: build 
    Affects Versions: 0.4.0
            Reporter: Edward J. Yoon
             Fix For: 0.5.0


Currently we don't package web resources and webapp path is hard-coded in 
HttpServer.

This issue figure out more elegant way to code this. Maven WAR plugin can be 
used to archive web resources. 

{code}
  protected String getWebAppsPath() throws IOException {
    // URL url = BSPMaster.class.getClassLoader().getResource("webapps");
    // if (url == null)
    // throw new IOException("webapps not found in CLASSPATH");
    // return url.toString();
    return "src/main/webapp";
  }
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to