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

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

本文整理了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

  1. /**
  2. * Gets the extra classpath for the WAR as a string array
  3. *
  4. * @param war The WAR being deployed, must not be {@code null}.
  5. * @return The WAR's extra classpath or {@code null} if none.
  6. */
  7. public static String[] getExtraClasspath(WAR war)
  8. {
  9. String[] extraClasspath = war.getExtraClasspath();
  10. if (extraClasspath == null || extraClasspath.length <= 0)
  11. {
  12. return null;
  13. }
  14. return extraClasspath;
  15. }
  16. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-tomcat

  1. /**
  2. * Gets the extra classpath for the WAR as a string array
  3. *
  4. * @param war The WAR being deployed, must not be {@code null}.
  5. * @return The WAR's extra classpath or {@code null} if none.
  6. */
  7. public static String[] getExtraClasspath(WAR war)
  8. {
  9. String[] extraClasspath = war.getExtraClasspath();
  10. if (extraClasspath == null || extraClasspath.length <= 0)
  11. {
  12. return null;
  13. }
  14. return extraClasspath;
  15. }
  16. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jetty

  1. String[] extraClasspath = war.getExtraClasspath();
  2. if (extraClasspath == null || extraClasspath.length <= 0)

代码示例来源:origin: codehaus-cargo/cargo

  1. String[] extraClasspath = war.getExtraClasspath();
  2. if (extraClasspath == null || extraClasspath.length <= 0)

代码示例来源:origin: codehaus-cargo/cargo

  1. if (app instanceof WAR)
  2. String[] appCp = ((WAR) app).getExtraClasspath();
  3. if (appCp != null)

代码示例来源:origin: codehaus-cargo/cargo

  1. /**
  2. * Configures the specified context element with the extra classpath (if any) of the given WAR.
  3. *
  4. * @param war The WAR whose extra classpath should be configured, must not be {@code null}.
  5. * @param context The context element to configure, must not be {@code null}.
  6. */
  7. private void configureExtraClasspath(WAR war, Element context)
  8. {
  9. if (war.getExtraClasspath() != null)
  10. {
  11. // if extraClasspath is not null here, we are on tomcat >=5x
  12. ((Tomcat5xStandaloneLocalConfiguration) getContainer().getConfiguration())
  13. .configureExtraClasspathToken(war, context);
  14. }
  15. }

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-tomcat

  1. /**
  2. * Configures the specified context element with the extra classpath (if any) of the given WAR.
  3. *
  4. * @param war The WAR whose extra classpath should be configured, must not be {@code null}.
  5. * @param context The context element to configure, must not be {@code null}.
  6. */
  7. private void configureExtraClasspath(WAR war, Element context)
  8. {
  9. if (war.getExtraClasspath() != null)
  10. {
  11. // if extraClasspath is not null here, we are on tomcat >=5x
  12. ((Tomcat5xStandaloneLocalConfiguration) getContainer().getConfiguration())
  13. .configureExtraClasspathToken(war, context);
  14. }
  15. }

相关文章