org.eclipse.jetty.webapp.WebAppContext.setCopyWebInf()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.eclipse.jetty.webapp.WebAppContext.setCopyWebInf()方法的一些代码示例,展示了WebAppContext.setCopyWebInf()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.setCopyWebInf()方法的具体详情如下:
包路径:org.eclipse.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:setCopyWebInf

WebAppContext.setCopyWebInf介绍

暂无

代码示例

代码示例来源:origin: de.saumya.mojo/jruby-mains

context.setContextPath("/");
context.setExtractWAR(false);
context.setCopyWebInf(true);

代码示例来源:origin: org.jruby.mains/jruby-mains

context.setContextPath("/");
context.setExtractWAR(false);
context.setCopyWebInf(true);

代码示例来源:origin: com.github.jruby-gradle/jruby-gradle-plugin

public String addRepository(String url) {
  if (urls.contains(url)) {
    return null;
  }
  String path = "/" + url.replace("://", "_")
              .replace(":", "_")
              .replace("/", "_")
              .replace(".", "_");
  WebAppContext context = new WebAppContext();
  context.setServer(server);
  context.setContextPath(path);
  context.setExtractWAR(false);
  context.setCopyWebInf(true);
  context.setWar(rubygemsWarURI);
  context.setInitParameter("gem-caching-proxy-url", url);
  context.setInitParameter("gem-caching-proxy-storage",
               new File(cachedir, path).getAbsolutePath());
  // do not setup other repos
  context.setInitParameter("gem-proxy-storage", "");
  context.setInitParameter("gem-hosted-storage", "");
  context.setInitParameter("gem-merged", "false");
  this.handlerCollection.addHandler(context);
  return path + "/caching/maven/releases";
}

代码示例来源:origin: nutzam/nutz-web

if (warUrlString.endsWith(".war") || dc.has("war")) {
  wac.setExtractWAR(false);
  wac.setCopyWebInf(true);
  wac.setProtectedTargets(new String[]{"/java", "/javax", "/org", "/net", "/WEB-INF", "/META-INF"});
  wac.setTempDirectory(new File("./tmp").getAbsoluteFile());

代码示例来源:origin: org.mortbay.jetty/jetty-maven-plugin

public JettyWebAppContext ()
throws Exception
{
  super();   
  setConfigurations(new Configuration[]{
      new MavenWebInfConfiguration(),
      new WebXmlConfiguration(),
      new MetaInfConfiguration(),
      new FragmentConfiguration(),
      envConfig = new EnvConfiguration(),
      new org.eclipse.jetty.plus.webapp.PlusConfiguration(),
      new MavenAnnotationConfiguration(),
      new JettyWebXmlConfiguration()
  });
  // Turn off copyWebInf option as it is not applicable for plugin.
  super.setCopyWebInf(false);
}
public void setContainerIncludeJarPattern(String pattern)

相关文章

WebAppContext类方法