Examples of addWebRoot()


Examples of com.intellij.javaee.web.facet.WebFacet.addWebRoot()

  @Override
  protected void performSetUp() throws Exception {
    final WebFacet webFacet = ContainerUtil.getFirstItem(WebFacet.getInstances(myModule));
    assert webFacet != null;
    webFacet.addWebRoot(VfsUtilCore.pathToUrl(getTestDataPath() + "/jsp"), "/");
    webFacet.addWebRoot(VfsUtilCore.pathToUrl(getTestDataPath() + "/jsp2"), "2ndWebRoot");
  }

  /**
   * @throws Throwable On errors.
View Full Code Here

Examples of com.intellij.javaee.web.facet.WebFacet.addWebRoot()

  @Override
  protected void performSetUp() throws Exception {
    final WebFacet webFacet = ContainerUtil.getFirstItem(WebFacet.getInstances(myModule));
    assert webFacet != null;
    webFacet.addWebRoot(VfsUtilCore.pathToUrl(getTestDataPath() + "/jsp"), "/");
    webFacet.addWebRoot(VfsUtilCore.pathToUrl(getTestDataPath() + "/jsp2"), "2ndWebRoot");
  }

  /**
   * @throws Throwable On errors.
   * @see com.intellij.struts2.dom.struts.impl.path.DispatchPathResultContributor
View Full Code Here

Examples of com.intellij.javaee.web.facet.WebFacet.addWebRoot()

      FacetManager.getInstance(module).addFacet(StrutsFacetType.getInstance(), "struts2", webFacet);
    }

    if (webXmlUrl != null) {
      final VirtualFile root = model.getSourceRoots()[0];
      webFacet.addWebRoot(root, "/");

      final ConfigFileInfoSet descriptors = webFacet.getDescriptorsContainer().getConfiguration();
      descriptors.addConfigFile(DeploymentDescriptorsConstants.WEB_XML_META_DATA, webXmlUrl);

      for (String url : ModuleRootManager.getInstance(module).getSourceRootUrls()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.