org.codehaus.cargo.container.deployable.WAR.getExtraClasspath()方法的使用及代码示例

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

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

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);
  }
}

相关文章