示例#1
0
  public boolean shouldIncludeScenarioLibraries() {
    // Should consider all of the decorated content to resolve those variables.
    String testSystem = sourcePage.getVariable(WikiPageIdentity.TEST_SYSTEM);
    boolean isSlim =
        "slim".equalsIgnoreCase(testSystem) || "slimCoverage".equalsIgnoreCase(testSystem);
    String includeScenarioLibraries = sourcePage.getVariable("INCLUDE_SCENARIO_LIBRARIES");
    boolean includeScenarios = "true".equalsIgnoreCase(includeScenarioLibraries);
    boolean notIncludeScenarios = "false".equalsIgnoreCase(includeScenarioLibraries);

    return includeScenarios || (!notIncludeScenarios && isSlim);
  }
示例#2
0
 protected String getPathSeparator() {
   String separator = sourcePage.getVariable(PageData.PATH_SEPARATOR);
   if (separator == null) separator = File.pathSeparator;
   return separator;
 }
示例#3
0
 @Override
 public String getVariable(String variable) {
   return sourcePage.getVariable(variable);
 }
示例#4
0
 private String getConfiguredRssLinkPrefixFrom(WikiPage contextPage) throws Exception {
   if (contextPage == null) {
     return null;
   }
   return contextPage.getVariable("RSS_PREFIX");
 }