本文整理了Java中org.eclipse.jetty.webapp.WebAppContext.setCopyWebInf()
方法的一些代码示例,展示了WebAppContext.setCopyWebInf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.setCopyWebInf()
方法的具体详情如下:
包路径:org.eclipse.jetty.webapp.WebAppContext
类名称: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)
内容来源于网络,如有侵权,请联系作者删除!