本文整理了Java中org.codehaus.cargo.container.deployable.WAR.getExtraClasspath()
方法的一些代码示例,展示了WAR.getExtraClasspath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WAR.getExtraClasspath()
方法的具体详情如下:
包路径:org.codehaus.cargo.container.deployable.WAR
类名称:WAR
方法名:getExtraClasspath
[英]Gets additional classpath entries for the web application that usually reside outside of the WAR file to facilitate rapid development without fully assembling the WAR file.
[中]获取web应用程序的其他类路径条目,这些条目通常位于WAR文件之外,以便在不完全组装WAR文件的情况下进行快速开发。
代码示例来源:origin: codehaus-cargo/cargo
/**
* Gets the extra classpath for the WAR as a string array
*
* @param war The WAR being deployed, must not be {@code null}.
* @return The WAR's extra classpath or {@code null} if none.
*/
public static String[] getExtraClasspath(WAR war)
{
String[] extraClasspath = war.getExtraClasspath();
if (extraClasspath == null || extraClasspath.length <= 0)
{
return null;
}
return extraClasspath;
}
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-tomcat
/**
* Gets the extra classpath for the WAR as a string array
*
* @param war The WAR being deployed, must not be {@code null}.
* @return The WAR's extra classpath or {@code null} if none.
*/
public static String[] getExtraClasspath(WAR war)
{
String[] extraClasspath = war.getExtraClasspath();
if (extraClasspath == null || extraClasspath.length <= 0)
{
return null;
}
return extraClasspath;
}
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jetty
String[] extraClasspath = war.getExtraClasspath();
if (extraClasspath == null || extraClasspath.length <= 0)
代码示例来源:origin: codehaus-cargo/cargo
String[] extraClasspath = war.getExtraClasspath();
if (extraClasspath == null || extraClasspath.length <= 0)
代码示例来源:origin: codehaus-cargo/cargo
if (app instanceof WAR)
String[] appCp = ((WAR) app).getExtraClasspath();
if (appCp != null)
代码示例来源:origin: codehaus-cargo/cargo
/**
* Configures the specified context element with the extra classpath (if any) of the given WAR.
*
* @param war The WAR whose extra classpath should be configured, must not be {@code null}.
* @param context The context element to configure, must not be {@code null}.
*/
private void configureExtraClasspath(WAR war, Element context)
{
if (war.getExtraClasspath() != null)
{
// if extraClasspath is not null here, we are on tomcat >=5x
((Tomcat5xStandaloneLocalConfiguration) getContainer().getConfiguration())
.configureExtraClasspathToken(war, context);
}
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-tomcat
/**
* Configures the specified context element with the extra classpath (if any) of the given WAR.
*
* @param war The WAR whose extra classpath should be configured, must not be {@code null}.
* @param context The context element to configure, must not be {@code null}.
*/
private void configureExtraClasspath(WAR war, Element context)
{
if (war.getExtraClasspath() != null)
{
// if extraClasspath is not null here, we are on tomcat >=5x
((Tomcat5xStandaloneLocalConfiguration) getContainer().getConfiguration())
.configureExtraClasspathToken(war, context);
}
}
内容来源于网络,如有侵权,请联系作者删除!